How can I use the \"Precompile during publishing\" flag on a VS2013 x64 project? No matter what I do, it fails to publish because it insists on using the x86 ASPNETCOMPILER.
Still an issue in Visual Studio 2015 Update 3...
Fix: Open the csproj file of the project in your favourite text editor.
Locate:
true
Add the following below it:
$(windir)\Microsoft.NET\Framework64\v4.0.30319
Amend the AspNetCompiler line as follows: