How to resolve the "Encountered multiple versions of the assembly with GUID '' while converting project from VS 2008 to VS 2010

末鹿安然 提交于 2019-12-23 09:31:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!