Required runtime for assembly

  • Thread starter Thread starter Riki
  • Start date Start date
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.
 
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!
***************************
 
Back
Top