I am building an Enterprise Architect add-in using C#. I have to interact with SVN Repository. I am using VS2010 and SharpSVN as library to interact with SVN Repository. my Add-in work fine when I change it to .NET 3.5. But now I have to interrogate with some another add-in and that other add-in is only compatible with 4.0.
but when I change my add-in code to .NET 4.0 then it give famous error
"Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime and need some configuration etc"
I have read here different topics about that problem and suggestion is to add app.config file. with the tags
<Configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</Configuration>
and same like tag this from different posts. I have tried everyone but still the problem remains. I have checked that VS2010 automatically generates the config file with the filename in Debug folder automatically.
Can anyone suggest me the solution? for example my add-in name is MyAddIn so VS2010
generates MyAddIn.dll and MyAddIn.dll.config with the above mentioned tags.
But problem remain there. I am using windows 7 64 Bit.
Any Help will be highly appreciated.