473,395 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to tell if an assembly is .net 1.1 or .net 2.0

Manually

Thanks!
Dec 18 '07 #1
3 1140

You can use the Corflags.exe tool from the .NET 2.0 SDK. Or look at
what version of mscorlib the assembly references with a tool like
Ildasm or Reflector.

Programmatically, check Assembly.ImageRuntimeVersion.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 19 '07 #2
weisun.aa@ wrote:
Manually
Open it in a text editor. Somewhere in the first couple of KB or so it will
mention mscorlib being version 1.0.5000.0 or 2.0.0.0.

Andrew
Dec 19 '07 #3
Thanks a lot! That brings another question, but I will start a new
post.
Dec 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: nospam | last post by:
Just wondering, What do you think the difference in performance would be between (1.) Compiled C# (2.) Compiled C++ (3.) and Assembly Language And how would the mix be if some if any of...
5
by: Earth Worm Jim | last post by:
Is there a tool that tells me what permissions my assembly requires? I have add to deny all permissions I just want to now grant one I require? Cheers Earth Worm Jim
12
by: joanne | last post by:
how to tell application version after i installed it at client side? i did make the version and product code while doing the packaging and deployment. Thanks a lot.
6
by: Rene | last post by:
Is there a way to tell if an assembly was compiled on Debug or Release mode? I tried viewing the file usin Ildasm but did't notice any special comment line or something that would tell me if it was...
3
by: martin | last post by:
Hi, How can I tell (from C# code) whether a .DLL contains native code or is infact a .NET assembly? I know that I could use Assembly.LoadFile() and see if it throws a BadImageFormatException...
2
by: De Roeck | last post by:
Thanks for reading, I've got the following function: Private allFlags As BindingFlags = BindingFlags.Public Or BindingFlags.NonPublic Or _ BindingFlags.Static Or _ BindingFlags.Instance ...
2
by: JSBarten | last post by:
I have a class library that I'm using from both a windows form application and a web services. Is there a way to tell if the refrencing/executing assembly is a windows form application, web...
1
by: Samuel R. Neff | last post by:
I'm looping through assemblies and checking CodeBase prior to processing a given assembly. However, I occasionally get this error: The invoked member is not supported in a dynamic module. ...
5
by: =?Utf-8?B?V2F5bmUgQmVycnk=?= | last post by:
I am using reflection and trying to determine if an assembly contains a type that has a particular interface. So my code looks like this: Assembly assembly = Assembly.LoadFile(fileName);...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.