c# - Installing assemblies for CLR 2.0 and CLR 4.0 programmatically -


i have application, let's name installer, installs assemblies in gac using publish.gacinstall method.

i faced issue when insteller run under .net 4.0 , installs assemblies in gac .net 4.0. when target .net framework 2.0 project don't see assemblies in gac.

is possible install assemblies in both gacs?

no, not depend on installer, on assemblies installs. clr v4 (.net 4.0 - 4.5.1) assemblies go in v4 gac , clr v2 (.net 2.0 - 3.5) assemblies go in v2 gac. if want assembly in both, have have 2 assemblies each clr version.

since clr v4 can run clr v2 applications can clr v4 assembly. need change/add config file application. see here.

<supportedruntime version="v2.0.50727"/>  <supportedruntime version="v4.0"/> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -