DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: In search of ... what version of .net a program is using  (Read 5,179 times)

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
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 (?!?  :-\).  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.
Make a good day ... barn

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: In search of ... what version of .net a program is using
« Reply #1 on: June 07, 2012, 04:43 PM »
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.

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
Re: In search of ... what version of .net a program is using
« Reply #2 on: June 07, 2012, 06:21 PM »
Yeah,

That's the conundrum  :-\.  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  :(.  (Or, alternatively, you uninstall a version and the software no longer runs  :mad: :P.))
 
(And then there's the side issue that popped up when I compared the .NET folder to the registry entries  :-\ :mad:.)
Make a good day ... barn

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: In search of ... what version of .net a program is using
« Reply #3 on: June 07, 2012, 06:50 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
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: In search of ... what version of .net a program is using
« Reply #4 on: June 07, 2012, 07:07 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.
step1.png

Look at the Manifest Node.
step2.png

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.
step3.png

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

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: In search of ... what version of .net a program is using
« Reply #5 on: June 07, 2012, 10:11 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, 10:18 PM by Curt »

Original address: https://www.donationcoder.com/forum/index.php?topic=31257.0