简体   繁体   English

如何在客户档案项目中引用system.design?

[英]How to reference system.design in a client profile project?

I have a project which is purely made of .net client profile. 我有一个完全由.net客户端配置文件组成的项目。

I needed to use a control nut this control uses the reference system.design, which does not available on client profile, 我需要使用一个控件螺母,该控件使用参考system.design,该参数在客户端配置文件中不可用,

I cannot change my project framework, and I need this library, so I tried to pull it and grab it as a reference dll to my project, but is did not work .. 我无法更改项目框架,并且需要此库,因此我尝试将其提取并作为项目的参考dll来获取,但无法正常工作..

What should I do in order to use system.design in client profile environment? 为了在客户端配置文件环境中使用system.design我应该怎么做?

Simply put: you can't. 简而言之:你不能。

You'll have to either change the target framework or re-implement the control for the client profile. 您必须更改目标框架或重新实现客户端配置文件的控件。

Please see the sixth comment on this Scott Hanselman article for more information. 有关更多信息,请参见此Scott Hanselman文章的第六条评论。

This assumes that your solution targets version 3.5 or 4.0 of the .NET Framework to be using the Client Profile. 假定您的解决方案将使用客户端配置文件的.NET Framework 3.5或4.0版本作为目标。

The Client Profile just limits the framework to allowing certain assemblies, so basically it's not possible to reference this assembly. 客户档案仅将框架限制为允许某些程序集,因此基本上不可能引用该程序集。

One thing you should notice is that with version 4.5 of the .NET Framework, Microsoft did away with the Client Profile, so looking forward, if you were to build your solution to target version 4.5 of the .NET Framework, you will only be able to use the Full Profile anyway, in which case, yes you can reference this assembly. 您应该注意的一件事是,在.NET Framework 4.5版中,Microsoft取消了客户端配置文件,因此,如果您要针对.NET Framework 4.5版构建解决方案,那么您将只能仍然要使用完整配置文件,在这种情况下,可以引用此程序集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM