VS 2010 pre-编译生成过程的网站?

问题描述:

VS 2010; TFS 2010; ASP.Net 4.0; Web部署项目2010;

VS 2010; TFS 2010; ASP.Net 4.0; Web Deployment Projects 2010;

我使用的构建过程模板,以便做一键部署(用于开发和QA只)。我希望我的网站是pre-编译。我可以用命令行做它,使用:

I am using the build process templates in order to do one-click deploys (for dev and QA only). I want my sites to be pre-compiled. I can do it with the command line, using:

 C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler 
-v /site_name 
-p "C:\...\site_name" 
-f "C:\...\site_name1"

如果我在从site_name1文件复制到SITE_NAME这工作得很好...

and this works fine if I copy the files over from site_name1 to site_name...

但有IDE中的一个选项,这?? 看来真的很傻不得不在命令行中执行此操作。我读过很多关于不同的选择,但没有与构建定义构建似乎适用。

but is there an option in the IDE for this?? It seems really silly to have to do this from the command line. I've read a lot about different options, but none seem applicable to building with the build definitions.

由于它目前为,我找不到任何IDE选项,使用构建流程模板pre-编译网站。我很乐意被证明是错误,因为使用命令行aspnet_compiler要求我们(在这里)破解打开实际的构建过程模板,我们正试图避免的。

As it currently stands, I can not find any IDE option to pre-compile websites using the build process templates. I would love to be proved wrong, as using the command line aspnet_compiler requires us (in our setup) to crack open the actual build process template, which we are trying to avoid.

我很乐意被证明是错误! :)

I would love to be proved wrong! :)