0

我們使用dmake構建機器,VS2010用於本地構建。一切正常,然後我安裝了VS2012 RC(最終)。安裝VS2012RC後的參考錯誤

它建立在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程序集的其他副本。

其他人碰到過嗎?我知道有幾種方法可以解決這個問題,但我希望有一種更加直接的方法來解決這個問題。

+0

我知道微軟聲明,VS 2012 RC可以與VS 2010 SP1一起安裝,但我不相信它。在安裝VS 2012 RC之前,您是否先卸載VS 2010?每次我安裝一個RC,它都會殺死我以前版本的VS. – 2012-08-15 19:23:05

+0

他們在哪裏陳述?我瞭解到.NET 4和.NET 4.5不能並肩生存。 – JoeB 2012-08-15 19:25:34

+0

並行安裝Visual Studio版本[鏈接](http://msdn.microsoft.com/zh-cn/library/ms246609%28v=VS.110%29.aspx)和Visual Studio 2012 RC Compatibility [link ](http://msdn.microsoft.com/en-us/library/hh266747.aspx) – 2012-08-15 19:33:33

回答

1

我建議修復從控制面板中的程序和功能安裝Visual Studio 2010。

+0

實際上,我找到了解決方案,但它不是一個好的解決方案。 – JoeB 2012-08-15 19:25:04

+0

我找到了一個解釋,但沒有解決方案。事實證明,這實際上對我有效。謝謝。 – JoeB 2012-08-21 15:32:39

+0

很高興幫助! – 2012-08-24 13:55:42