Configure Visual Studio 2013 to allow ASPNETCOMPILER to precompile using the x64 compiler

前端 未结 2 1716
挽巷
挽巷 2021-02-10 03:44

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.

2条回答
  •  情歌与酒
    2021-02-10 04:24

    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
    

    Locate:

    
      
    
    

    Amend the AspNetCompiler line as follows:

    
    

提交回复
热议问题