Welcome Guest.   Make a donation to an author on the site July 30, 2014, 08:20:15 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the Practical Guide to DonationCoder.com Forum Search Features
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: In search of ... what version of .net a program is using  (Read 1005 times)
barney
Charter Member
***
Posts: 1,239


see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« on: June 07, 2012, 10:59:33 AM »

Folk,

Is there a way to determine which version of .NET a given program is using?  Windows Explorer shows six (6) versions (four (4) major versions) installed on one (1) of my machines.  Regedit shows four (4) (three (3) major) versions (?!?  undecided).  Search provides much info on determining what is installed, but I've not found anything to show what version is actually being used by any given program.
Logged

Make a good day ... barn
Curt
Supporting Member
**
Posts: 6,308

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: June 07, 2012, 11:43:27 AM »

I don't know the answer to your question, but it is my experience that if a software author "Prerequisites" .NET version 1.1 for his program, it will not settle with .NET version 2 or 3 or 4...
So you might easily need all of them, if you have old programs installed.
Logged
barney
Charter Member
***
Posts: 1,239


see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: June 07, 2012, 01:21:13 PM »

Yeah,

That's the conundrum  undecided.  I've got someone - not the author - asking me what version of .NET a program is using.  And I don't know how to find out.  .NET seems to be a lot like Java:  multiple versions required because of program(s) requirements.  And, apparently, no way to tell what version any given program is using unless you have the source and can read it  Sad.  (Or, alternatively, you uninstall a version and the software no longer runs  mad tongue.))
 
(And then there's the side issue that popped up when I compared the .NET folder to the registry entries  undecided mad.)
Logged

Make a good day ... barn
Ath
Supporting Member
**
Posts: 2,183



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: June 07, 2012, 01:50:35 PM »

A quick search found me this geeks-with-blogs answer
But this stack-overflow thread and this one have more and clearer information, IMHO
Logged

wraith808
Supporting Member
**
Posts: 6,111



"In my dreams, I always do it right."

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: June 07, 2012, 02:07:45 PM »

No, you will rarely need multiple versions of .NET for one program especially a small one- the only case where this comes into play if a program uses assemblies (DLLs) that have requisite earlier versions.  And this becomes less of an issue in later versions as they are inclusive, i.e. 3 or higher, and you just install the latest version of .NET.

That said- on to the most reliable method I know.  The question that comes closest to what you want is what version of CLR is required.  This is a very intensive way to find out the information, so it requires a developer or a very technical person.

Install the .NET SDK (if not installed).  You should have it installed if you have visual studio installed.
Run ILDASM and select the application.  If from visual studio, you can open the visual studio command prompt and run it easily.


Look at the Manifest Node.


There are two places you can look- in the application resources, there should be an indication of the .NET version.  You can also look for the windows assemblies to see the versions.  I've highlighted both below.


That should give you a pretty good indication of the highest version involved.
Logged

Curt
Supporting Member
**
Posts: 6,308

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: June 07, 2012, 05:11:57 PM »

Speaking of .NET Framework: I have an "old" program requiring .NET version 1.1, but when I look at .NET 1.1 SP1's homepage, Win 7 is not listed as supported (support ended with Vista). So, what do I do, to run an old program requiring just .NET 1.1 on my W7: install it (.NET 1.1 SP1) anyway and hope for the best?
 tellme

edit:

...  I've got someone ... asking me what version of .NET a program is using. 

You are on DC, and "we" have many programs laying around. If you could tell what program and version, you might get surprised...
« Last Edit: June 07, 2012, 05:18:28 PM by Curt » Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.03s | Server load: 0.05 ]