zoukankan      html  css  js  c++  java
  • VS2010中使用《WeifenLuo.WinFormsUI.Docking.dll》,类型 Universe 无法解析程序集

    打开窗体设计器出现,类型 Universe 无法解析程序集: System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a。

    解决: 应用程序目标框架不能为Client Profile

    参考:

    VS2010 "Type universe cannot resolve assembly" has nothing to do with relativity

    If you happen to see this error be concerned, but do not be alarmed... :-)

    Client-Profile Error Message

    If you find this error message confusing, it is simply due to the fact that you did not read it with the correct understanding of the "Type universe."  You see, the Type universe is, evidently, the collection of all the types and assemblies in the deployment framework.  In other words, System.Design.dll could not be found in the target framework for the application.

    Why does this matter, and what does this mean? 

    The Microsoft Visual Studio team decided in VS 2010 to change the default Target framework for application to .NET Framework 4 Client Profile.  The intent of this change is reasonable- "to improve the deployment size, time, reliability and overall deployment experience for client application users." 

    Unfortunately, GrapeCity, along with many ISVs, did not become aware of this change in Visual Studio 2010 behavior until too late.  Therefore we have not yet had time to adjust Spread for Windows Forms to work to target the Framework-Client Profile. 

    The above error occurs when dragging Spread for Windows Forms from the Toolbox to a WindowsForm, and results from the Spread assembly containing designtime classes that have dependecies on classes in System.Design.dll.  The System.Design assembly is not included in the Client Profile - so there you have it.  We have reasons for including the designtime classes in the Spread assembly, but they are not good enough reasons so we have plans to provide full support for the VS2010 default, Client Profile, behavior by separating Spread for Windows Forms 5 design functionality into a separate assembly.  However, until a maintenance release is published to address this issue, the work-around in VS2010 is to change the Target framework to a non-Client Profile Framework.

    Good coding!

    原文:

    http://www.clubfarpoint.com/Forums/blogs/robbys_blog/archive/2010/02/05/vs2010-quot-type-universe-cannot-resolve-assembly-quot-has-nothing-to-do-with-relativity.aspx

  • 相关阅读:
    Java学习-IO流-read()和write()详解
    JAVA中String类常用构造方法
    java的System.exit(0)和System.exit(1)区别。
    Eclipse快捷键大全
    Java Arraylist的遍历
    Java Map的遍历
    C++求最大公约数,最小公倍数
    C++sort使用实例
    [Project Euler] 题目汇总
    [leetcode]做过的题的目录
  • 原文地址:https://www.cnblogs.com/z1971/p/2254077.html
Copyright © 2011-2022 走看看