We help IT Professionals succeed at work.

.net in windows versions

Hi,

I am using click once technology to deploy my .net application, which versions of windows automatically comes with net?

Thanks,

Victor
Comment
Watch Question

Christopher Jay WolffWiggle My Legs, Owner

Commented:
This blogger has spent months figuring it out and here is his list of results.

http://blogs.msdn.com/b/astebner/archive/2007/03/14/mailbag-what-version-of-the-net-framework-is-included-in-what-version-of-the-os.aspx

The Microsoft option for looking into this appears to start out a little vague and is depicted with this msdn link.

http://blogs.msdn.com/b/astebner/archive/2007/03/14/mailbag-what-version-of-the-net-framework-is-included-in-what-version-of-the-os.aspx
Commented:
Hi vcharles,

Please check the .NET Framework version history which includes (Windows and Windows Server)

.NET Framework History
Distinguished Expert 2019
Commented:
The operating system may come with a version of .net but it may not always be available but an installable feature that is available via programs & settings / windows components
Top Expert 2015
Commented:
Most of the time, all of this is useless.

A version of Windows that did not come with .NET can have .NET installed.

A version of Windows that comes with .NET can have almost any version installed.
     The version that came with the operating system could have been updated to a newer one.
     Because it is not part of the OS, it could have been removed by the user or an administrator.
     In some scenarios, you need to install an older version for some programs to work, even if a newer one is already installed.

Author

Commented:
Hi,  Thank you for all the comments, my app was developed with VS 2014 (.net 4.0), deploying an app with clickonce technology was to work aound the need for admin rights to install the app, need  to inform users which versions of Windows may already have .net 4.0 installed.
Top Expert 2015

Commented:
In the Publish page that you use to prepare a ClickOnce installation, you can specify, under prerequisites, which version of the framework is required for your application.

Once selected, at the bottom of the window you can indicate that the framework should be installed from the vendor's website.

Setting that will add a message indicating the need to install the framework in the web page that is created when you Publish your installation. Under the message is a button that the user can click to install the framework from Microsoft.

No admin rights is required. This will install the framework, and then your application. If the user has a version of Windows that is too old to support your version of the framework, he will be told so.

Author

Commented:
Thank you, will try it and write back.

Author

Commented:
Another question, App developed with VS2010 should only run with  .net version 4.0 or higher right?
Distinguished Expert 2019

Commented:
make a dependency for .net framework 4.0
Top Expert 2015

Commented:
The version of Visual Studio is not directly linked to the version of the framework. You can target an earlier version in the Application tab of the Project Properties window.

This is usually done before starting to work on the project however. If you developed for 4.0 and then try to compile for 3.5, it will not compile if you have used features that appeared only in 4.0. The compiler will give an error on these pieces of code. You will then either have to adapt the code to 3.5 or leave it at 4.0.

Author

Commented:
Thank You.