如何在没有aspnet_compiler的情况下直接从Visual Studio编译Web站点项目?

时间:2011-12-05 10:24:36

标签: asp.net visual-studio-2010 web-site-project aspnet-compiler

我有一个网站项目,希望我的.aspx和.cs被编译。为此,我使用这样的aspnet编译器:

aspnet_compiler -v /My_Site -p c:\site_published_with_Visual_Studio c:\site_compiled_with_aspnet_compiler

这意味着,我必须首先使用Visual Studio 2010发布我的网站,然后打开命令行来调用aspnet_compiler。

有没有办法直接使用Visual Studio 2010编译网站项目,可能是通过点击而不是使用命令行?在此先感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

您可以使用Publish WebSite向导 - 构建菜单+发布网站。请查看MSDN文章 - How to: Deploy a Web Site Project by Using the Publish Web Site Tool