2

I have a mixed mode 2.0 dll, and a 4.0 dll. I want to supply this

<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup> 
</configuration>

to my dll. Without an app.config (or changing machine.config) is this even possible?

MikeW
  • 4,659
  • 9
  • 39
  • 79

1 Answers1

0

You cannot supply this information just for single assembly - the entire application will be executed either on top of 2.0 or 4.0 runtime host.

If the question is how to support v2.0 and v4.0 in application without app.config - see Embedding supportedRuntime into exe file

Ondrej Svejdar
  • 20,356
  • 5
  • 53
  • 87