.NET version confusion

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

I have 1.1 and 2.0 installed on my machine. I also have application that is
using 1.1. When I run the application on my computer, which version of the
..NET Framework that it will use? Is there a way to check it?

Regards,
Budhi
 
I have 1.1 and 2.0 installed on my machine. I also have application that is
using 1.1. When I run the application on my computer, which version of the
.NET Framework that it will use?

It will by default use the version the application was compiled
against, if it's installed.

Is there a way to check it?

System.Environment.Version


Mattias
 
Hello Budhi,

To add to Mattias, you can use ILDASM to open assembly and to check in MANIFEST
which version is required
BP> Hi All,
BP>
BP> I have 1.1 and 2.0 installed on my machine. I also have application
BP> that is using 1.1. When I run the application on my computer, which
BP> version of the .NET Framework that it will use? Is there a way to
BP> check it?
BP>
BP> Regards,
BP> Budhi
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
By default, it uses the version compiled under (as Mattias has stated). The
one potential exception is web applications, which will run under the
version of .NET on the server. This could be disasterous on Windows 2000 set
up to run 1.1 (if you are compiling 2.0, that is).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Back
Top