Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / June 2004

Tip: Looking for answers? Try searching our database.

mscoree.dll and GetFileVersionInfo

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tester - 18 Jun 2004 12:38 GMT
Is it safe if I want to check mscoree.dll version to determine .NET runtime
version? So far they correspond. I know about GetCORVersion. But I would
like to know the answer to my question.

Thanks a lot
Mattias Sj?gren - 18 Jun 2004 12:51 GMT
>Is it safe if I want to check mscoree.dll version to determine .NET runtime
>version?

Which runtime version? Keep in mind that you can have multiple
versions installed, but only one Mscoree.dll.

If you want the version of the currently loaded runtime from managed
code, the easiest way is to check System.Environment.Version.

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Tester - 19 Jun 2004 00:49 GMT
Unless you do custom CLR hosting and specify version, isn't it safe to
assume that whatever mscoree.dll version is, that will be the version loaded
into process?

> >Is it safe if I want to check mscoree.dll version to determine .NET runtime
> >version?
[quoted text clipped - 6 lines]
>
> Mattias
Mattias Sj?gren - 20 Jun 2004 02:35 GMT
>Unless you do custom CLR hosting and specify version, isn't it safe to
>assume that whatever mscoree.dll version is, that will be the version loaded
>into process?

No. Since I have preview versions of v2.0 of the framework installed,
my Mscoree.dll is v2.0. But my applications compiled against v1.1
still runs under that version of the framework.

In addition, it was said at the PDC last year that Microsoft may in
the future have reasons to make available a small shim version of
Mscoree.dll that is redistributable without the framework. So the fact
that Mscoree.dll is available may not always mean that the framework
is installed at all.

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.