[英]Multi-targeting build with Visual Studio and .NET Framework
I've seen a few frameworks that provide different builds; 我见过一些提供不同构建的框架; for example they might provide 32bit and 64bit builds, or they might provide a build which targets .NET 2.0, 3.5 and 4.0
例如,他们可能提供32位和64位版本,或者他们可能提供针对.NET 2.0,3.5和4.0的版本
I have a library which works on .NET 3.5 upwards, but I'm not sure what is the best release strategy for this. 我有一个可以在.NET 3.5上运行的库,但是我不确定什么是最好的发布策略。
I'd like to know what benefit there is to creating multiple framework targets and also what benefit there is for targeting 32bit ans 64bit CPUs specifically. 我想知道创建多个框架目标有什么好处,以及具体针对32位和64位CPU有什么好处。
If I were to go down the road of multi-targeting, Are there any good tutorials for how to achieve this? 如果我要走多目标的道路,是否有任何关于如何实现这一目标的好教程?
Not sure why you need a bounty,a google search should be enough. 不确定为什么你需要赏金,谷歌搜索应该就够了。
I have a library which works on .NET 3.5 upwards, but I'm not sure what is the best release strategy for this.
我有一个可以在.NET 3.5上运行的库,但是我不确定什么是最好的发布策略。
If you want to target an older version (in your case .NET 2.0) move all v2.0 compatible code to a project that targets .NET 2.0. 如果要定位旧版本(在您的情况下为.NET 2.0),请将所有v2.0兼容代码移动到面向.NET 2.0的项目。
Then you can reference this project from your ".NET 3.5" project 然后,您可以从“.NET 3.5”项目中引用此项目
If you don't want 100% of your features on .NET 2.0 you don't have to do anything else. 如果您不希望在.NET 2.0上100%使用您的功能,则无需执行任何其他操作。
If you do need all the functionality you'll have to re-implement it using .NET 2.0 compatible code 如果您确实需要使用.NET 2.0兼容代码重新实现它的所有功能
I'd like to know what benefit there is to creating multiple framework targets
我想知道创建多个框架目标有什么好处
A lot of people are working on projects that target an older version of .NET (2.0 ,3.5 ,...) 很多人正在开发针对旧版.NET(2.0,3.5,...)的项目
and they can't update for various reasons(for example .NET 4.5 is not supported on Windows XP) 并且由于各种原因无法更新(例如Windows XP不支持.NET 4.5)
So,if you want them to use your Library we have to provide assemblies that target a specific .NET version. 因此,如果您希望它们使用您的库,我们必须提供针对特定.NET版本的程序集。
also what benefit there is for targeting 32bit ans 64bit CPUs specifically.
特别是针对32位和64位CPU的目标也是有益的。
Differences between 32 and 64-bit .NET (4) applications 32位和64位.NET(4)应用程序之间的差异
Back to Basics: 32-bit and 64-bit confusion around x86 and x64 and the .NET Framework and CLR 回到基础:围绕x86和x64以及.NET Framework和CLR的32位和64位混淆
32-bit and 64-bit explained 解释了32位和64位
Why Are Most Programs Still 32-bit on a 64-bit Version of Windows? 为什么大多数程序在64位版本的Windows上仍然是32位?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.