如何建立使用南特一个.NET网站 [英] How to build a .NET website using Nant
问题描述
我通常使用在Visual Studio的Web应用程序和MSBUILD TAKS在南特建造它没有任何问题:
I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems:
<msbuild project="MySolution.sln">
arg value="/property:Configuration=release" />
</msbuild>
我现在有一个网站(而不是Web应用程序)在VS解决方案,它不会建 - 我得到了很多的命名空间的错误
I now have a website (not a web application) in a VS Solution and it won't build - I get a lot of namespace errors.
我应该能够建立的解决方案的MSBuild尽管它包含一个网站?或者我需要使用CSC?
Should I be able to build the solution with MSBUILD even though it contains a website? Or do I need to use CSC?
推荐答案
您应该尝试使用 devenv.exe的如果命令的 msbuild.exe 失败你。此外,您可能感兴趣的<一个href="http://www.microsoft.com/downloads/details.aspx?FamilyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en"相对=nofollow> Web部署项目。
You should try using the devenv.exe command if msbuild.exe is failing for you. Also you may be interested in Web Deployment Projects.
这篇关于如何建立使用南特一个.NET网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!