Geeks With Blogs
Saqib Ullah BootStrapper Know How
Suppose you have an application that developed on the .Net Framework 1.1 and it’s deployed in the shared environment where .Net Framework 1.1 and 2.o both are installed and you need to run your application on .Net framework 1.1.
 
Solution
Microsoft gives a very simple solution of this problem. You only need to write the following setting in the app.config file.
<configuration>
 <startup>
      <!--set the appropriate .net version-->
      <supportRuntime version="1.1.4322"/>
 </startup>
</configuration>
 
What is your application CLR version?
Programmatically finding the CLR version for your application on which its run is very easy.
Console.WriteLine(Assembly.GetExecutingAssembly().ImageRuntimeVersion);
 
Here I found a good code snippet that find the assembly CLR version.
Posted on Friday, June 1, 2007 10:03 AM .Net , General | Back to top


Comments on this post: Set and Find Application CLR Version

# re: Set and Find Application CLR Version
Requesting Gravatar...
both snippets are useful and following is the link
http://www.cookcomputing.com/blog/archives/000526.html
Left by asim on Jun 02, 2007 9:45 PM

# Links (6/4/2007)
Requesting Gravatar...
.NET Extending the Notification Pattern Example Windows PowerShell Graphical Help File - via Mike Gunderloy
Left by Member Blogs on Jun 04, 2007 2:10 PM

Your comment:
 (will show your gravatar)


Copyright © Saqib Ullah | Powered by: GeeksWithBlogs.net