Targeting application for a specific version

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
 
G

Gregory A. Beamer

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! |
*******************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top