问题
I just converted my project from VS 2008 to VS 2010, here is the error I am getting now :-
Encountered multiple versions of the assembly with GUID ''. Try pre-importing one of these assemblies.
I already tried to clean solutions, projects, and recompile, close and open again. but no luck.
回答1:
Are any of your references to the debug folder? If so you'll want to remove them.
EDIT - Since you mentioned COM Object in your comment....
Assembly error building app - Encountered multiple versions of assembly
Looks like it's a bug in VS 2010....
回答2:
You should try to change .net Framework3.5 to .net Framework4.5.
回答3:
If you open your "Assembly.cs" file, there is a GUID in there for your application... for grins, I would just try changing the GUID via generating a new new (don't have VS open for menu action to generate GUIDs, but its there). Then try to recompile. your project(s) and final application.
回答4:
Had same problem. Noted some references which looked invalid under References folder in the Solution Explorer. Right Click and Selecte Remove.
Once removed the thing worked just fine.
来源:https://stackoverflow.com/questions/8271548/how-to-resolve-the-encountered-multiple-versions-of-the-assembly-with-guid-w