我們使用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程序集的其他副本。
其他人碰到過嗎?我知道有幾種方法可以解決這個問題,但我希望有一種更加直接的方法來解決這個問題。
我知道微軟聲明,VS 2012 RC可以與VS 2010 SP1一起安裝,但我不相信它。在安裝VS 2012 RC之前,您是否先卸載VS 2010?每次我安裝一個RC,它都會殺死我以前版本的VS. – 2012-08-15 19:23:05
他們在哪裏陳述?我瞭解到.NET 4和.NET 4.5不能並肩生存。 – JoeB 2012-08-15 19:25:34
並行安裝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