Visual Studio 2010错误:类型Universe无法解析程序集 [英] Visual Studio 2010 error: Type universe cannot resolve assembly

查看:195
本文介绍了Visual Studio 2010错误:类型Universe无法解析程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将最初在Visual Studio 2008中创建的WPF项目加载到Visual Studio 2010中.转换过程进行得很顺利,但是VS2010设计器在某些XAML文件上引发了一些与项目引用相关的错误,包括以下错误:

I've loaded a WPF project initially created in Visual Studio 2008 into Visual Studio 2010. The conversion process goes smoothly, but on certain XAML files the VS2010 designer throws several errors related to project references, including this one:

System.Reflection.Adds.UnresolvedAssemblyException

System.Reflection.Adds.UnresolvedAssemblyException

类型Universe无法解析程序集:GalaSoft.MvvmLight,版本= 3.0.0.31869,文化=中性,PublicKeyToken = 3e875cdb3903c512.

Type universe cannot resolve assembly: GalaSoft.MvvmLight, Version=3.0.0.31869, Culture=neutral, PublicKeyToken=3e875cdb3903c512.

此程序集参考在Expression Blend 4设计器中可以正常工作,但在VS2010中不能正常工作.

This assembly reference works just fine in the Expression Blend 4 designer, but not in VS2010.

我可以成功构建并运行该解决方案.

I can build and run the solution successfully.

我的解决方案针对.Net Framework 3.5 SP1.

My solution targets the .Net Framework 3.5 SP1.

推荐答案

我无法完全确定您是否遇到了同样的问题,但是Ninject一直在导致该类型Universe错误.dll.在提取压缩文件之前,我通过"取消阻止" zip文件来解决了该问题.我认为这只会影响Vista和Win 7开发人员机器,但值得尝试. 我上周发布了一个博客条目,其中包含有关错误和解决方案的详细信息.向下滚动到被傻瓜戏弄"部分.

I can't quite tell if you're having the same problem I had or not, but I was getting that type universe error all the time with the Ninject .dll. I solved it by "Unblocking" the zip file before extracting it. I think this only affects Vista and Win 7 dev machines but it's worth a try. I posted a blog entry last week with details on the error and the solution. Scroll down to the "Foiled by a Blockhead" section.

这篇关于Visual Studio 2010错误:类型Universe无法解析程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆