Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

C# multitarget platform dll

$
0
0

I have problem with using C# dll on 3.5 and 4.5 platform. I have main app (unmanaged code) which use C# dll. And i need to target my dll to both 3.5 and 4.5 platforms. For C# exe application i've used app.exe.config file like

<?xml version="1.0"?><configuration><startup><supportedRuntime version="v2.0.50727"/><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/></startup></configuration>

I've tried to put it in dll folder, in main app folder with lib_name.config.dll and main_app.config.exe name. But it still doesn't work. I should target single dll to both platform (so i can't use only 3.5 or 4.5 framework). How can i use config file for dll?


Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>