G
Guest
Hi
I am building a .NET Windows application using C#. In my application I am referring to shared library which updates very often(only revision change). Now I want my executable to load latest version of the shared library available in GAC
In short, If I have a shared assembly with version 1.0.0.1 and 1.0.0.2 in GAC and my application was built referring to version 1.0.0.1 ,it should automatically refer to the new version available in GAC i.e. 1.0.0.2 without rebuilding the application
Is this possible in .NET? I referred to an article in codeproject.com which says this can be done but I could not do
The following is the description default verisioning found in the article
Understanding the Default Version Polic
As mentioned earlier in the chapter, if a client is referencing a shared assembly, the major and minor versions must be identical if the bind is to succeed. However, the .NET runtime binds to a given assembly if the assembly reference differs by the revision or build numbers. This behavior is termed the default version policy and is used to ensure that a client always gets the latest and greatest service release (i.e., bug fix) of a given assembly. Thus, if the client's manifest explicitly requests version 1.0.0.0, but the GAC has a newer version by specifying a QFE (such as 1.0.2.2), the client automatically receives the most recent fix. In this way, a client application is guaranteed that the assembly that it is referencing is backward compatible, in addition to being as bug-free as possibl
The link of the article is as follows
http://codeproject.com/books/1893115593_6.as
Can anybody help me out
Thanks in Advance.
Sampat.
I am building a .NET Windows application using C#. In my application I am referring to shared library which updates very often(only revision change). Now I want my executable to load latest version of the shared library available in GAC
In short, If I have a shared assembly with version 1.0.0.1 and 1.0.0.2 in GAC and my application was built referring to version 1.0.0.1 ,it should automatically refer to the new version available in GAC i.e. 1.0.0.2 without rebuilding the application
Is this possible in .NET? I referred to an article in codeproject.com which says this can be done but I could not do
The following is the description default verisioning found in the article
Understanding the Default Version Polic
As mentioned earlier in the chapter, if a client is referencing a shared assembly, the major and minor versions must be identical if the bind is to succeed. However, the .NET runtime binds to a given assembly if the assembly reference differs by the revision or build numbers. This behavior is termed the default version policy and is used to ensure that a client always gets the latest and greatest service release (i.e., bug fix) of a given assembly. Thus, if the client's manifest explicitly requests version 1.0.0.0, but the GAC has a newer version by specifying a QFE (such as 1.0.2.2), the client automatically receives the most recent fix. In this way, a client application is guaranteed that the assembly that it is referencing is backward compatible, in addition to being as bug-free as possibl
The link of the article is as follows
http://codeproject.com/books/1893115593_6.as
Can anybody help me out
Thanks in Advance.
Sampat.