Exclude files from web site publish in Visual Studio

Exclude files and folders by adding ExcludeFilesFromDeployment and ExcludeFoldersFromDeployment elements to your project file (.csproj, .vbproj, etc). You will need to edit the file in a text editor, or in Visual Studio by unloading the project and then editing it. Add the tags anywhere within the appropriate PropertyGroup (Debug, Release, etc) as shown below: <PropertyGroup … Read more