How do I publish a Asp.NET web application using MSBuild?

后端 未结 2 737
一整个雨季
一整个雨季 2020-12-05 18:56

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target;



        
2条回答
  •  生来不讨喜
    2020-12-05 19:28

    I came up with such solution, works great for me:

    msbuild /t:ResolveReferences;_WPPCopyWebApplication /p:BuildingProject=true;OutDir=C:\Temp\buidl\ Test.csproj
    

    Secret sauce is _WPPCopyWebApplication target.

提交回复
热议问题