视觉工作室隐藏了aspx页面中的拼写错误(而不是后面的代码)真的很烦人.如果编译器会编译它们,我会收到编译错误.
Iai*_*der 26
在编译时编译页面.请参阅Mike Hadlow的帖子:
http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html
Ale*_*ard 10
转到您的项目属性.转到" 构建事件"选项卡.
在Post-build事件命令行: text area中,编写此代码(对于.NET 4.0):
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v / -p "$(SolutionDir)$(ProjectName)"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19456 次 |
| 最近记录: |