0

我们使用 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(或至少 CSC VS2010 附带的)来查找 WPF 程序集的其他副本。

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

4

1 回答 1

1

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

于 2012-08-15T19:23:57.007 回答