Domanda

We use dmake for our build machines and VS2010 for building locally. Everything worked fine, then I installed VS2012 RC (ultimate).

It's building ok in Visual Studio, although I get a bunch of these warnings:

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.  

However, dmake throws a bunch of error message, and they all look like this:

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)

From the error message, you can tell we're using a checked in version of .NET (so that we have a stable test environment among other things), and it seems that the installation of VS2012 has caused VS2010 (or at least the CSC that comes with VS2010) to find additional copies of WPF assemblies.

Anyone else run into this? I know of a few ways to start hacking at this to fix it, but I'm hoping there is a more straightfoward way to solve this.

È stato utile?

Soluzione

I would suggest to Repair the Visual Studio 2010 installation from Program and Features in Control Panel.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top