Last post Aug 25, 2017 06:26 AM by Deepak Panchal
Aug 24, 2017 04:26 PM|klgrube|LINK
I'm running the newest version of the Visual Studio 2017 preview.
Microsoft Visual Studio Professional 2017 Preview (2)
Version 15.3.1 Preview 1.0
Microsoft .NET Framework
Installed Version: Professional
Web Essentials 2017 1.5.31
The easiest way to set up Visual Studio for the ultimate web development experience. Requires Visual Studio 2017 Update 3 or newer
I've followed a very simple, basic tutorial to create a website and get to the point where it says to publish the website you've created. The web page displays in the browser perfectly from the debugger. I have two basic problems,
1. I cant change from Debug configuration to Release. The dropdown in the Configuration only shows "Debug." There is no other choice. How do I fix that?
2. "Publish Website" isn't an option in the Build menu. Publish Web App is, but that's not the same. How do I fix that?
My goal is to publish this website on this server. It won't be public. I can work with my hosting company on that. But first, I have to resolve these two problems. I hope someone here can give me some guidance.
Aug 24, 2017 07:03 PM|wavemaster|LINK
You need a local server with some version of Windows Server, IIS, WebDeploy and more.
Then with WebDeploy you would create a publish profile, which VS2017 would need to it knows where to publish to.
Or set up a free account with Azure then everything becomes much simpler.
Aug 24, 2017 11:49 PM|klgrube|LINK
Thanks! I'm working on a Windows 2012 R2 server with the current version of IIS. What is Web Deploy? Is there a specific version for Visual Studio 2017? Do you happen to have a link?
That may help, but it doesn't help with why I can't change the configuration from Debug to Release. Any suggestions in that regard?
Aug 25, 2017 12:37 AM|wavemaster|LINK
Web Deploy is for IIS: https://www.iis.net/downloads/microsoft/web-deploy
The best way to get Web Deploy is to use Web Platform Installer.
Web Deploy creates a publish profile of your site, which VS will need to publish.
The only way I know of to publish is right click on Solution Explorer then select Publish
Here is how it works: https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx
Aug 25, 2017 06:26 AM|Deepak Panchal|LINK
you can also try to refer link below.
ASP.NET Web Deployment using Visual Studio: Deploying to Test