Using dlls compiled in Visual Studio 2010 with the target .NET Framework 4.0 in Visual Studio 2008

I know this is a little close to. Can I use the beta version of .NET 4.0 in Visual Studio 2008?

But my question is a little different. I have a project that now uses .NET 4.0 (target .NET Framework 4.0) in Visual Studio 2010. Can I use the compiled project DLLs in Visual Studio 2008? How?

I do not want to use .NET4.0 directly in Visual Studio 2008, only compiled dlls with the target .NET Framework 4.0 (so my question is different from what was asked so far).

I know that I was able to use .NET3.5 in Visual Studio 2005. So why not .NET4.0 in Visual Studio 2008?

+3
source share
1 answer

.NET 3.5 did not have new versions of mscorlib, System.dll, etc. - it had new builds, but the ones you could use from .NET 2 were the same.

.NET 4 introduces new versions of these major assemblies - and the embedded DLL will reference these new versions explicitly. Visual Studio 2008 does not know about these versions - or the CLR that comes with them.

If you want to use the library in Visual Studio 2008, you should target .NET 3.5.

+3
source

Source: https://habr.com/ru/post/1746517/


All Articles