在同一解决方案中定位 .NET Framework 4 Client Profile 和 .NET Framework 4(完整)

发布于 2024-10-09 03:45:53 字数 322 浏览 0 评论 0原文

我有一个包含 ASP.NET Web 应用程序项目的解决方案。 Web 应用程序项目类型只能针对完整 .NET Framework 4,并且 Visual Studio 不允许您选择客户端配置文件

但是,同一解决方案中的类库项目允许我以 .NET Framework 4 Client Profile 为目标。

那么,我是否应该在同一解决方案中混合定位客户配置文件完整框架?或者只是针对包含 Web 应用程序项目的解决方案中的每个项目类型的完整框架?或者两者都不重要?

I have a Solution which contains an ASP.NET Web Application project. Web Application project types can only target the full .NET Framework 4, and Visual Studio won't let you select the Client Profile.

However, my Class Library projects in that same solution allow me to target the .NET Framework 4 Client Profile.

So, should I mix targeting the Client Profile and the full framework in the same solution? Or just target the full framework for every project type in a Solution containing a Web Application project? Or does it not matter either way?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别把无礼当个性 2024-10-16 03:45:54

面向 .NET 的应用程序
框架 4 客户档案通常
通过以下方式改善部署体验
下载大小较小并且
更快的安装时间。申请
面向 .NET Framework 4
客户档案较小
安装的重新分发包
客户端程序集的最小集合
在用户的计算机上,无需
需要完整版本的.NET
框架 4 即将出现。

如果您的库是通用的,并且目标设备将使用客户端配置文件框架安装,那么更喜欢您的库的客户端配置文件,通过这样做,您将拥有更小的安装程序。安装客户端配置文件框架时不包括 Web 组件。

请参阅:http://msdn.microsoft.com/en-us/library/cc656912 .aspx

Applications that target the .NET
Framework 4 Client Profile typically
improve the deployment experience by
having smaller download sizes and
quicker install times. An application
that targets the .NET Framework 4
Client Profile has a smaller
redistribution package that installs
the minimum set of client assemblies
on the user's computer, without
requiring the full version of the .NET
Framework 4 to be present.

If your library is general purpose and the target equipment will be installed with Client Profile Framework then prefer client profile for your library, by doing this you will have smaller installers. Web Components are not included when installed Client Profile Framework.

See: http://msdn.microsoft.com/en-us/library/cc656912.aspx

忆沫 2024-10-16 03:45:53

如果您计划在 WPF 或 WinForms 应用程序中重用类库,那么 Client Profile 是一个不错的选择,因为您可能也能够将 WPF 或 WinForms 应用程序设置为使用 Client Profile。即使您的 WPF 或 WinForms 应用程序最终需要完整的框架,Client Profile 也是完整框架的子集,因此它仍然可以正常工作。

如果你对类库的重用计划只是WebApp或者你只是使用类库来帮助分段代码,那么目标框架实际上并不重要。

If you plan to reuse the Class Library in a WPF or WinForms app, then Client Profile is a good choice, since you are likely going to be able to set your WPF or WinForms app to use Client Profile as well. Even if your WPF or WinForms app ends up requiring the full framework, Client Profile is a subset of the full framework so it will still work just fine.

If your reuse plans on the Class Library are WebApp only or your only using a Class Library to help segment code, then the target framework is really not important.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文