What is the correct way to precompile an ASP.Net MVC 2 application from Visual Studio 2010?
I am using asp.net 3.5 and trying to use the post build event.
I use this:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v / -p "$(ProjectDir)"
but this gives me the wrong path error in ProjectDir.
UPDATE: I changed "$ (ProjectDir)" to $ (ProjectDir) \, and now it gives me this error:
"Error using a partition registered as allowDefinition = 'MachineToApplication' outside of the application tier. This error may be caused by the virtual directory not being configured as an application in IIS."
thank
source
share