2009-09-30 53 views

回答

1

不是100%,但你有IDE中生成后选项(在Web应用程序性能的生成事件)

即使没有,你可以运行在命令行

C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v/-f -u -p 
"$(ProjectDir)\" "$(SolutionDir)PrecompiledWeb\$(ConfigurationName)" 
+0

@dove:谢谢你的回答,但我需要更多关于如何使用Pro版本(编译视图,启用更新或编译所有DLL)实现相同的预编译结果的说明...等等再次感谢 – 2009-09-30 13:26:47

+0

@ahmed看看aspnet_compiler /?你会看到那里的旗帜的细节,例如-u表示可更新。另外你可能想看看web部署项目http://www.microsoft.com/downloads/details.aspx?FamilyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en – dove 2009-09-30 15:15:24

+0

http://www.asp.net/学习/主机/教程-15-cs.aspx – 2009-10-01 09:06:12

0

我还没有与VS快递产生的任何尝试这样做以下,但你应该使用自定义的MSBuild脚本,无论是能够构建和部署网站它来自哪里。喜欢的东西:

<MSBuild Projects="$(MSBuildProjectDirectory)\MyProject.csproj" 
     Targets="ResolveReferences;_CopyWebApplication" 
     Properties="WebProjectOutputDir=$(MyTargetDir);OutDir=$(WebProjectOutputDir)\;Configuration=Release" />