How can i configure a .net application to use different versions of a dll in different OS
如何配置.net应用程序在不同的操作系统中使用不同版本的dll ?
Let me elaborate in details.
让我详细说明。
I have a .net application that needs a dll under version .net 2.0 in Windows7 and lower OS but it require the same dll under version 4.0 in Windows8 OS.If i use the .net 2.0 versioned dll in Windows 8 then the application will crash.So i created the same dll under .net 4.0.But i don't know how can i tell my application to use the different versioned dll in different OS. Thanks,
我有一个。net应用程序,它需要在Windows7和更低的操作系统下的。net 2.0版本下的dll,但是它需要在Windows8操作系统的4.0版本下使用相同的dll。如果我在Windows 8中使用。net 2.0版本的dll,那么应用程序就会崩溃。所以我在。net 4.0下创建了同一个dll。但是我不知道如何告诉我的应用程序在不同的操作系统中使用不同版本的dll。谢谢,
1 个解决方案
#1
0
Using .NET assembly binding redirection, check this: http://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.71).aspx
使用.NET程序集绑定重定向,请检查:http://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.71).aspx。
#1
0
Using .NET assembly binding redirection, check this: http://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.71).aspx
使用.NET程序集绑定重定向,请检查:http://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.71).aspx。