I need to have a DLL built in .net v2.0 to be called from SQL Server 2008 as an external DLL (CLR Assembly). This dll must be in .net v2.0 to be compatible with our SQL Server version and is only to make a bridge between SQL Server and other C# features developed in .net V4.5. So i refence another DLL built in .Net V4.5 but I can't compile it! I have the fallowing warning:
warning MSB3258: The primary reference "my_dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.
Can we ignore the assembly version compability ? Or can we have another solution to invoke any function developed in .net V.4.5 from a SQL Server 2008 ?