we've a C# DLL in .net4.0 but built using using Microsoft.bcl, Microsoft.bcl.async, Microsoft.bcl.build, Microsoft.net.http. These libs got from nuget. We've reasons to not to move to .net4.5 but want to use async, await from these bcl libs. Everything works fine in C# projects, but we couldnt add this DLL in our C++ interop projects, we get this error:
We get this error when we try to add this reference to project.
Even though clr interop project is also in .net4.0 and DLL we are adding is also in .net4.0 we end up getting this error. Is there a way to resolve this?
Error in text format:
---------------------------
Microsoft Visual Studio
---------------------------
Could not add a reference to:
C:\xxx\xxx\xx\xxxHelper.dll
For one of the following reasons:
- Targets a higher version of the .NET Framework
- Not a .NET assembly
- Not a registered ActiveX control
---------------------------
OK
---------------------------
code to reproduce this issue: https://dl.dropboxusercontent.com/u/1967630/BCL_Problem/oAuth2_SDK_consumer_DLL/BCL_Problem_projects.zipx