How to Build a .NET Website Using Nant

I usually use web applications in Visual Studio, and the MSBUILD tags in Nant build them without problems:

<msbuild project="MySolution.sln">
  arg value="/property:Configuration=release" />
</msbuild> 

Now I have a website (and not a web application) in VS Solution and it will not be created - I get a lot of namespace errors.

Should I be able to create a solution using MSBUILD, even if it contains a website? Or do I need to use CSC?

+3
source share
3 answers

You should try using the devenv.exe command if msbuild.exe does not work for you. You may also be interested in Web Deployment Projects .

: Microsoft Build Engine: MSBuild Team Foundation Build

+2

MSBuild OutDir . :

  • DLL .
  • _PublishedWebsite. , Publish Visual Studio.

, - MSBuild.

+1
devenv.exe /rebuild debug mywebsite.sln

, debug, release, .

+1

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


All Articles