Geeks With Blogs
Zackary Geers blog March 2010 Entries
Even better

This works slightly better then my previous version, it figures out the framework directory on the fly.

for /D %%d in (%systemroot%\Microsoft.NET\Framework\v4.0.*) do %%d\aspnet_compiler -v / -p "$(ProjectDir)\"

Posted On Thursday, March 4, 2010 10:17 AM

More ASPX pre-compiling
I found a simple post-build event I use to ensure the.aspx/.ascx'es are valid and won't throw compile errors at runtime. (For VS 2010... If you're reading this after VS2010 went RTM, the version number is probably different then this one) Open your project settings, go to the Build Events tab, and enter this in the Post-build event command line: section. %systemroot%\Microsoft.NET\... -v / -p "$(ProjectDir)\" ......

Posted On Wednesday, March 3, 2010 6:07 PM

Copyright © Zackary Geers | Powered by: GeeksWithBlogs.net