Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Repercussions of enabling useLegacyV2RuntimeActivationPolicy?

For my current project, we're using some CLR 2 based mixed mode assemblies.

In order to use these from within a .NET 4 targetted assembly, I know you have to add useLegacyV2RuntimeActivationPolicy=true to the <startup> element within app.config.

I understand that this changes the activation policy, causing these mixed-mode assemblies to be loaded using the highest supported version of the CLR.

However, are there any side effects to doing this? What potential issues should I watch for when enabling the non-default activation policy?

like image 273
Reed Copsey Avatar asked Feb 13 '10 00:02

Reed Copsey


1 Answers

Hans Passant is partially correct. I attempt to explain this enigmatic attribute in this blog entry: http://www.marklio.com/marklio/PermaLink,guid,ecc34c3c-be44-4422-86b7-900900e451f9.aspx

The repercussions are essentially that you lock out in-proc SxS with pre-v4 runtimes. This is typically acceptable in a migration scenario.

like image 79
Mark Miller Avatar answered Oct 08 '22 03:10

Mark Miller