Targeting application for a specific version

  • Thread starter Thread starter Raj
  • Start date Start date
R

Raj

The GAC has two versions of a same assembly. How an application can
instantiate specific class from an assembly of a specific version?

Example:
The GAC has PublicCalculator V1 and PublicCalculator V2.

Query1:
The application need to instantiate classes of V1. ( to support backward
compatibility)
The application need to insantiate classes of V2 also!

Is it possible? if so, can I have code snippet?

Thank you

Regards
Raj
 
The GAC has two versions of a same assembly. How an application can
instantiate specific class from an assembly of a specific version?

Example:
The GAC has PublicCalculator V1 and PublicCalculator V2.

Query1:
The application need to instantiate classes of V1. ( to support
backward compatibility)
The application need to insantiate classes of V2 also!

Is it possible? if so, can I have code snippet?

You specify it in the config file by adding the version number to the
assembly reference.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

My vacation and childhood cancer awareness site:
http://www.crazycancertour.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top