I have an ASP.net Core Web Application and I am struggling to do a one-click publish from Visual Studio 2017 to an IIS server on the network.
On the server, the website is running already. The issue is when there is a need to publish a new version of the website from Visual Studio.
Right now I do this manually and would like a one-click solution so that I (and others on my team) don't have to manually stop the app pool, publish, and start app pool.
I have created my publish profile to go to File System \\[server]\wwwroot[MySite] but I cannot replace it without stopping the Application Pool. How do I tell Visual Studio to Stop the App pool, publish, then start the App pool?