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

コントロールパネルのプログラムと機能からVisualStudio2010のインストールを修復することをお勧めします。

于 2012-08-15T19:23:57.007 に答える