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 am using this;
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v / -p "$(ProjectDir)"
but it gives me an invalid path error on the ProjectDir.
UPDATE: I changed "$(ProjectDir)" to $(ProjectDir)\ and it now gives me this error;
"It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. "
Thanks