2013使用64位编译器

2013使用64位编译器

本文介绍了配置的Visual Studio 2013使用64位编译器,让ASPNETCOMPILER至precompile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能国旗在VS2013 64项目在发布过程中precompile使用?无论我做什么,它未能发布,因为它坚持使用86 ASPNETCOMPILER。

我想我曾经有过在VS2012这个工作,但升级到VS2013就不再工作了。

我记得涉及改变有关的MSBuild 文本文件修复,但老实说,我不知道非常关注它,所以它是一个有点朦胧。

任何帮助是极大AP preciated。谢谢!


解决方案

这似乎是在Visual Studio 2013中的错误。

<一个href=\"http://connect.microsoft.com/VisualStudio/feedback/details/778961/$p$pcompile-error-when-using-x64-platform\"相对=nofollow> Microsoft连接 - precompile错误使用X64平台时

解决方法列在那里工作,并为在项目/的PropertyGroup XML标记添加以下XML来发布配置(位于项目的属性\\ PublishProfiles目录)。

<$p$p><$c$c><AspnetCompilerPath>C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319</AspnetCompilerPath>

我得到这个生成错误应用上述解决办法之前:
无法加载文件或程序集****或它的一个依赖项。试图加载程序格式不正确。 - ASPNETCOMPILER

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.

I think I used to have this working in VS2012, but after upgrading to VS2013 it is no longer working.

I recall the fix involving changing a text file related to MSBuild but I honestly don't know very much about it so it's a little hazy.

Any help is greatly appreciated. Thanks!

解决方案

This seems to be a bug in Visual Studio 2013.

Microsoft Connect - Precompile error when using X64 platform

The workaround listed there works and is to add the following xml in the Project/PropertyGroup xml tag to the publish profile (located in the Properties\PublishProfiles directory of your project).

<AspnetCompilerPath>C:\Windows\Microsoft.NET\Framework64\v4.0.30319</AspnetCompilerPath>

I was getting this build error before applying the above workaround:"Could not load file or assembly '****' or one of its dependencies. An attempt was made to load a program with an incorrect format." - ASPNETCOMPILER

这篇关于配置的Visual Studio 2013使用64位编译器,让ASPNETCOMPILER至precompile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 00:57