Required runtime for assembly

R

Riki

I know that I can set a required runtime version for an application in the
config file.

I can also configure the runtime version for an assembly in the GAC.

But how can I set a required runtime for an assembly in the assembly itself?

Meaning that the framework should give an error when I try to run my
assembly on a lower version.

I didn't find anything on Google.
 
G

Guest

Use Reflection and find numbers for the "required Assembly". Code an
exception if it is not the correct version. In other words, you will have to
"hard code" the value if it does not work to use the .config file.


---

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

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