Redirecting Assembly Versions

P

Perry Langla

Hi,
I ran across some information about redirecting assembly version. It said
you can use a redirect statement in the app.config file. Could someone
please help me with this redirect statement. The statement in my file is;

</appSettings>

<startup>

<supportedRuntime version="v1.1.4322" />

<supportedRuntime version="v1.1.4322" />

</startup>

</configuration>

I would like for this to direct to runtime version 2.0

Thanks Perry Langla
 
M

Mattias Sjögren

I ran across some information about redirecting assembly version.

You do that with the <bindingRedirect> element in the config file. But
redirecting assembly versions will not help you change the CLR
version.

<startup>

<supportedRuntime version="v1.1.4322" />

<supportedRuntime version="v1.1.4322" />

</startup>

</configuration>

I would like for this to direct to runtime version 2.0

Add a <supportedRuntime> element with v2.0.50727. If both 1.1 and 2.0
are installed and you add that to your config file, it will cause the
2.0 runtime to be used for your app.


Mattias
 

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