user58909: How upload application from Visual Studio? I can’t find upload process from standard VS in documentation https://docs.platformio.org/en/latest/ide/visualstudio.html
I hate VS Code.

user58962: I am using Visual Studio Code, but I suppose the plugin works similar in Visual Studio. Look at the screenshot below. 

In red rectangle you have "Project tasks options", where you can find "Upload" button. This will not work, if you have not set at least one environment in platformio.ini file – see the documentation.
Example of the simple environment for Arduino Uno created in  platformio.ini file:
[env:uno]
platform = atmelavr
board = uno
framework = arduino


user58909: I have final solution for uploading application from VS 2019.

Visual Studio have Tools > External Tools... where is possible add the PlatformIO command for uploading application pio run -v -t upload



After that is possible adding custom button to Toolbar 
Fantastic thing is, that during upload you can Stop the process 


58909: <p>How upload application from Visual Studio? I can’t find upload process from standard VS in documentation <a href="https://docs.platformio.org/en/latest/ide/visualstudio.html" rel="nofollow noreferrer">https://docs.platformio.org/en/latest/ide/visualstudio.html</a></p>

<p>I hate VS Code.</p>
 58962: <p>I am using Visual Studio Code, but I suppose the plugin works similar in Visual Studio. Look at the screenshot below. </p>

<p><a href="https://i.stack.imgur.com/2kbk3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2kbk3.png" alt="this "></a></p>

<p>In red rectangle you have "Project tasks options", where you can find "Upload" button. This will not work, if you have not set at least one environment in platformio.ini file – see the <a href="https://docs.platformio.org/en/latest/projectconf.html" rel="nofollow noreferrer">documentation</a>.
Example of the simple environment for Arduino Uno created in  platformio.ini file:</p>

<pre><code>[env:uno]
platform = atmelavr
board = uno
framework = arduino
</code></pre>
 58909: <p>I have final solution for uploading application from VS 2019.</p>

<ol>
<li>Visual Studio have Tools > External Tools... where is possible add the PlatformIO command for uploading application <code>pio run -v -t upload</code></li>
</ol>

<p><a href="https://i.stack.imgur.com/nUJo9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nUJo9.jpg" alt="VS External Tools settings by PlatformIO"></a></p>

<ol>
<li>After that is possible adding custom button to Toolbar <a href="https://i.stack.imgur.com/fJwLI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fJwLI.png" alt="enter image description here"></a></li>
<li>Fantastic thing is, that during upload you can Stop the process <a href="https://i.stack.imgur.com/ySQ2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ySQ2A.png" alt="enter image description here"></a></li>
</ol>
