|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET version confusionHi 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 It will by default use the version the application was compiled>using 1.1. When I run the application on my computer, which version of the >.NET Framework that it will use? against, if it's installed. >Is there a way to check it? System.Environment.VersionMattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. 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 Nietzsche 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). -- Show quoteGregory A. Beamer MVP; MCP: +I, SE, SD, DBA http://gregorybeamer.spaces.live.com ************************************************* Think outside of the box! ************************************************* "Budhi Saputra Prasetya" <BudhiSaputraPrase***@discussions.microsoft.com> wrote in message news:BE197C6F-2245-4BD6-8315-253B3DAAC903@microsoft.com... > 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 |
|||||||||||||||||||||||