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

  • 相关阅读:
    toPrimitive方法使用
    使用js导入Excel数据,转化为json,导出指定json,合并单元格为excel
    vue-router基本使用
    json另类使用
    z-index无效情况
    构造函数另类使用。
    在worker中使用offscreenCanvas
    使用git提交代码一条龙
    IntelliJ IDEA使用技巧一览表
    Android studio 常用快捷键
  • 原文地址:https://www.cnblogs.com/z1971/p/2254077.html
Copyright © 2011-2022 走看看