我有一个网站项目,希望我的.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编译网站项目,可能是通过点击而不是使用命令行?在此先感谢您的帮助!
答案 0 :(得分:0)
您可以使用Publish WebSite
向导 - 构建菜单+发布网站。请查看MSDN文章 - How to: Deploy a Web Site Project by Using the Publish Web Site Tool。