安装VS2012RC后引用错误

时间:2012-08-14 15:51:52

标签: wpf visual-studio-2010 visual-studio-2012 assembly-resolution csc

我们在构建机器上使用dmake,在本地构建VS2010。一切正常,然后我安装了VS2012 RC(终极版)。

它在Visual Studio中构建正常,但我得到了一堆警告:

There was a mismatch between the processor architecture of the project being built "MSIL" 
and the processor architecture of the reference "MyAssembly, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86", "x86". 
This mismatch may cause runtime failures. 
Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, 
or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.  

但是,dmake会抛出一堆错误消息,它们看起来都像这样:

SomeFile.cs(172,16): error CS0433: The type 'System.Windows.Input.ICommand' exists in both
 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll' and
 'd:\SomeLocalDirectory\external\microsoft.net\framework\v4.0\PresentationCore.dll'
Windows\Microsoft.NET\Framework\v4.0.30319\System.dll: (Location of symbol related to previous error)
d:\SomeLocalDirectory\external\microsoft.net\framework\v4.0\PresentationCore.dll: (Location of symbol related to previous error)

从错误消息中,您可以告诉我们正在使用已签入的.NET版本(以便我们在其他方面拥有稳定的测试环境),并且似乎VS2012的安装已导致VS2010(或在至少VS2010附带的CSC)来查找WPF程序集的其他副本。

其他人遇到这个?我知道有几种方法可以开始攻击它来修复它,但我希望有更直接的方法来解决这个问题。

1 个答案:

答案 0 :(得分:1)

我建议从控制面板中的程序和功能修复 Visual Studio 2010安装。