Environment:
VS2010 and .Net 3.5 (SP1 installed and VS2008)
I have a solution with 3 small projects;
1.vcxproj (output: 1.lib) - unmanaged C++ code (platform toolset: v100, framework: v3.5)
2.vcxproj (input: 1.lib & output: 2.dll) - managed C++ code (platform toolset: v100)
3.csproj (input: 2.dll & output: 3.dll) (framework: v3.5)
The first 2 projects were compiled successfully but when we compile 3.csproj, we received a warning;
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1578,5): warning MSB3258: The primary reference "F:\Test\Proj2\2.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. [f:\Test\Proj3\3.csproj]
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets(1578,5): warning MSB3258: The primary reference "F:\Test\Proj2\2.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "Microsoft.VisualC, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "10.0.0.0" than the version "8.0.0.0" in the current target framework. [f:\Test\Proj3\3.csproj]
I have tried the suggestions from the internet but they are not working. Would you know what my problem is?
Thanks in advance.
Additional information - in GAC, I see these;
F:\bin>gacutil /l mscorlib
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=AMD64
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=AMD64
mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86
Number of items = 4
====================================
F:\bin>gacutil /l Microsoft.VisualC
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
Microsoft.VisualC, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Microsoft.VisualC, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
Number of items = 2