如何决定什么是.NET目标目标、NET

2023-09-06 14:45:23 作者:逗比闪闪i

我们现在使用VS2003(目标到.NET 1.1),我们希望升级到VS2008,但我不知道什么应该是新的.NET的目标?

We now use VS2003 (target to .Net 1.1) and we want to upgrade to VS2008, but I wonder what should be the new .Net target?

我要离开目标为NET 1.1(很老了,不是在所有计算机上安装),或者升级呢?

Should I leave the target as .Net 1.1 (very old, not installed on all computers) or upgrade it?

如果我升级 - 2.0 enouth?或者升级到最新的3.5(我们的客户使用的是Windows XP,Vista和Windows 7)

If I upgrade - Is 2.0 enouth? or maybe upgrade to the latest 3.5 (our clients use Windows XP, Vista and Windows 7)

如果我定位我的应用程序,以2.0会发生什么情况,并且用户有3.5?如果用户在NET 3.5的安装.Net 2.0?可以将它安装旧版本的上面的新版本,即使携手并肩?或者应用程序将工作没有错误和警告,因为3.5包括2.0?

What happens if I target my app to 2.0, and the user has 3.5? should the user install .Net 2.0 on .Net 3.5? can it work side by side even when installing old version "above" new version? or maybe the application would work without errors and warnings because 3.5 "includes" 2.0?

谢谢

Atara

。 。

感谢大家。 我想我要定位到2.0,涵盖大部分我的客户,如果客户没有安装任何.NET,我会问他安装latests(3.5及更高版本4)

Thank you all. I guess I am going to target to 2.0, to cover most of my clients, and if a client does not have any .Net installed, I will ask him to install the latests (3.5 and later 4)

您可以请你只确认的.Net 3.5只是增加了更多的组件到2.0,并且不包含错误修正为2.0组件?

Can you please just confirm that .Net 3.5 just added more assemblies to 2.0, and does not include bug-fixes for 2.0 assemblies ?

(我的用户的计算机技能水平不高,少安装好)

(The computer skill level of my users is not high, Less installation is better)

。 。 。更新: 见我的问题 - http://stackoverflow.com/questions/3620474/microsoft-net-compatibility

. . . Update: See my problem - http://stackoverflow.com/questions/3620474/microsoft-net-compatibility

感谢您的回答。

Atara

推荐答案

快速澄清,如果升级到VS2008则不能针对任何1.x的框架。 VS2008只支持针对2.0,3.0和3.5的框架。

Quick clarification, if you upgrade to VS2008 you cannot target any of the 1.X frameworks. VS2008 only supports targeting 2.0, 3.0 and the 3.5 frameworks.

您需要的时候瞄准了一个框架来考虑的一件事是你的客户的影响。要使用你的应用程序,目标客户将还需要有相应的.Net框架安装在他们的计算机上。这样做的成本可以变化有点取决于场景。最好的情况不过是.NET Framework已经安装,因此用户只需安装应用程序。

One thing you need to consider when targeting a framework is the impact on your customers. To use your application, the target customer will need to also have the corresponding .Net framework installed on their machine. The cost of doing this can vary a bit depending on the scenario. The best case though is the .Net framework is already installed and hence the user can just install your application.

1.X:自带$ P $上W2K3对安装 2.0:在Windows Vista上,W2K8和W​​in7 pre安装 2.0SP1:pre-安装Win7的(也许W2K8) 3.5:Win7的(也许W2K8)

我个人的选择是使用2.0框架,除非你的应用程序实际上使用的功能从3.5或更高版本的框架。这增加了机会,最终用户将已经拥有.net框架安装在他们的计算机上,从而降低安装应用程序的成本。

My personal choice would be to use the 2.0 framework unless your application actually uses a feature from the 3.5 or higher framework. This increases the chance the end user will already have the .Net framework installed on their machine and hence reduces the cost of installing your application.

在过去的一部分,如果客户有.NET Framework的更高版本,那么你的应用程序会工作得很好。

For the last part, if the customer has a higher version of the .Net framework then your application will work just fine.