Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which versions of .NET Framework I can count on?

Tags:

c#

.net

I am writing an app to discover what features exist on a pc. The user would go to a web page, download the app and execute it (with all the appropriate warnings, this is not spyware). The app would use the standard MS api to determine such things as connection speed, installed memory, firewall health, etc. Writing the app is not a problem, I could use Scripting Host, C#, C++, etc. The question is, if I chose C# is there any guarantee that a certain flavor of windows would have .net installed? The target pc is XP SP2 or better and Vista.

Thanks for the help.

like image 380
Jon Avatar asked Feb 17 '09 18:02

Jon


People also ask

Can I have multiple versions of .NET Framework?

Microsoft designed the . NET Framework so that multiple versions of the framework can be installed and used at the same time. This means that there will be no conflict if multiple applications install different versions of the . NET framework on a single computer.

Which version of .NET framework should I use?

A cross-platform and open-source framework, . NET Core is best when developing applications on any platform. . NET Core is used for cloud applications or refactoring large enterprise applications into microservices. You should use .

Does .NET Framework 4.8 include 4.7 2?

if you have 4.8 then you have 4.7. 2 automatically.

Does Net Framework 4.7 include previous versions?

x use 4.7, or do I need to install 4.6 also? Yes, 4.7 overwrites any previously installed 4. x version. Make sure you don't also install 4.6, that will destroy the 4.7 install.


2 Answers

Vista does have .NET 3.0 installed. XP SP2 doesn't have any .NET framework installed by default.

like image 78
mmx Avatar answered Sep 22 '22 12:09

mmx


You may want to read Scott Hanselman's blog post SmallestDotNet: On the Size of the .NET Framework, specifically the What's the "Client Profile?" section:

The Client Profile is an even smaller install option for .NET 3.5 SP1 on XP. It's small 277k bootstrapper. When it's run on a Windows XP SP2 machines with no .NET Framework installed, it will download a 28 meg payload and give you a client-specific subset of .NET 3.5. If the Client Profile bootstrapper is run on a machine with any version of .NET on it, it'll act the same as the 3.5 SP1 web installer and detect what it needs to download, then go get it. There's more details in the Client Profile Deployment Guide.

like image 29
Grant Wagner Avatar answered Sep 18 '22 12:09

Grant Wagner