Publishing a website using msbuild

I would like to publish a website using msbuild. Since I have a website and not a web application project, how can I do this since I do not have a .csproj file and msbuild expects a project file as input or you can execute it in the folder with the project file. My solution file contains several sites that do not have .csproj files?

+3
source share
2 answers

Use the Aspnet compiler task.

http://msdn.microsoft.com/en-us/library/ms164291.aspx

It works on asp.net sites. Just copy (or output directly) to where you need to deploy it.

+4
source

- -, MSBuild .wdproj ( MSBuild script).

- VS2008

Visual Studio, , .

script ASP.NET, .

+5

Source: https://habr.com/ru/post/1708560/