
Option 1: Either includes your custom file in VS project, and set the Build Action to “Content” In MVC application, it remove controller, model folder as it just contains the *.cs file, which are build in YourWebApp.dll.įolder structure is clean, but there is one caveat: if you application requires certain extra files to publish, then, it won’t automatically do it for you.

which are not required to run the application. This is fantastic feature, as it does many thing on your behave, like Web.config transformation, removing *.cs files, *.designer.cs files, etc. Visual Studio has the facility to publish the web application to File System, FTP, Web Deploy, Azure, etc.
