简体   繁体   English

.Net Framework 4 Full 和 Net Framework 4 Client Profile Targeting

[英].Net Framework 4 Full and Net Framework 4 Client Profile Targeting

I wanted to target my .net application to.NetFramework 4(Client Profile) but later i recognized that a 3rd party control uses System.Design for implementing custom control.我想将我的 .net 应用程序定位到 .NetFramework 4(客户端配置文件),但后来我认识到第 3 方控件使用 System.Design 来实现自定义控件。

Now im concerned about the users, as most will have.Net Framework 4 Client Profile installed on their system rather than.Net Framework 4 Full.现在我很关心用户,因为大多数人会在他们的系统上安装 .Net Framework 4 Client Profile 而不是 .Net Framework 4 Full。 Will the users find it annoying to download and install the Full Framework.用户会觉得下载和安装完整框架很烦人吗? But there is only a minor size difference client- 41mb and full- 48 mb.但是只有很小的差异客户端 - 41mb 和完整 - 48 mb。

Does most .net applications require client profile only?大多数 .net 应用程序是否只需要客户端配置文件? Also is there a alternative way to use ControlDesigner class in c# with client profile.还有一种替代方法可以在 c# 中使用 ControlDesigner class 和客户端配置文件。

Please help me out.请帮帮我。

You simply need to select the full .NET 4 framework as the Target Framework.您只需要 select 完整的 .NET 4 框架作为目标框架。 Trying to take any shortcut around that is going to blow up in your face.试图绕过任何捷径都会让你大吃一惊。 Well, your user's face most of all.好吧,最重要的是你的用户的脸。

This just isn't a problem.这不是问题。 Your Setup project needs to ensure that the right profile is available on the user's machine.您的安装项目需要确保正确的配置文件在用户的机器上可用。 Which does not involve a 48 megabyte download if she already has the Client profile, the .NET installer only downloads the missing pieces.如果她已经拥有客户端配置文件,则不涉及 48 兆字节的下载,.NET 安装程序仅下载丢失的部分。

You could always have the copy set to true for System.Design and distribute that with your app.您始终可以将 System.Design 的副本设置为 true 并将其与您的应用程序一起分发。

Other than that they have to install it.除此之外,他们必须安装它。 There is no other way unless the 3rd party control drops the dependency.除非第 3 方控件删除依赖项,否则没有其他方法。

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

相关问题 面向.NET Framework 4.0 - Targeting .NET Framework 4.0 ASP.NET Core使用EF6和Identity定位完整框架 - ASP.NET Core targeting full framework with EF6 and Identity Clickonce + .NET客户端配置文件4框架+离线 - Clickonce + .NET client profile 4 framework + offline 在一个Nuget包中定位.Net核心框架和完整的.Net 4.5 / 4.6框架 - Targeting .Net Core Framework and Full .Net 4.5/4.6 Framework in one Nuget Package 安装Framework 4.5时,以.NET Framework 4为目标 - Targeting .NET Framework 4 when Framework 4.5 is installed 如何从针对完整 .NET 框架的 .NET SDK csproj 中删除默认/锁定程序集引用? - How to remove default/locked assembly reference from .NET SDK csproj that is targeting full .NET Framework? .net 4客户端配置文件框架中如何进行缓存 - How we can have a caching in .net 4 client profile framework “ .NET Framework 3.5客户端配置文件”前提条件在ClickOnce部署中不可用 - “.NET Framework 3.5 Client Profile” Prerequisite not available in a ClickOnce Deployment ServiceBus.dll与.NET 4 Framework客户端配置文件 - ServiceBus.dll vs .NET 4 Framework client profile .NET Framework 4.5完全安装如何只有50MB(因为它们不再具有客户端配置文件)? - How is the .NET Framework 4.5 Full Install only 50MB (since they don't have Client Profile anymore)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM