1
votes

After the upgrade, when build, a warning pops up saying:

The primary reference "Elegant.Ui.Ribbon, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3a2b400713aae6e0, processorArchitecture=MSIL" 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. PDFFlowline.VS2010

How so? And how to fix it. This project compiles fine on VS2008. I'm running Windows 7 and VS2010 and both of them have the latest updates installed.

1
One of your main projects is still referencing 2.0Micah Armantrout
Yes, I'm not upgrading framework, I'm merely upgrading visual studio. But when I choose .NET 4.0 as the target framework, more errors occur, hundreds of.imgen
How many projects are in your solution ?Micah Armantrout
Just one. I managed to use SharpDevelop as I don't want to get in the hassle of installing VS2008, it's both expensive and too bulky for my needs.imgen

1 Answers

0
votes

I cannot get it to work on VS2010, instead I tried SharpDevelop which can open and build projects of older version, in this case VS2008. So my problem solved, sort of. BTW, to get it to work, you need to set the target framework to 2.0 and C# compiler to 3.0 if you are planning to use lambda, LINQ with LINQBridge and Extension Methods which is an essential part of my C# coding.