troubleshooting Question

"Primary Reference" Warning in Visual Studio

Avatar of infotechelg
infotechelgFlag for United States of America asked on
ASP.NETEditors IDEs.NET Programming
5 Comments2 Solutions308 ViewsLast Modified:
Hello. Recently, while trying to build a project that has a reference to an Assembly generated three warnings (see attached image).

However, when I go to that assembly and rebuild it, it builds just fine. In the project, I remove the reference to the assembly and re-add it, try to build, and get the same errors.

I'm not quite sure how to go about fixing this, especially since the Assembly builds without issue. Everything here is .NET 4.0 in VS2010.

Generically, the warnings are to the effect of: "The primary reference "assembly" could not be resolved because it has an indirect dependency on the framework assembly....which could not be resolved in the currently targeted framework..."

Note that I did trace this down to the installation (via NuGet) of Google.Apis.Analytics.v3 Client Library. When I uninstall the installation from the Assembly, rebuild, and then rebuild my projects, everything is back to normal.

So, I'm not too sure why this Library would be causing everything to get blow'd up. Any help would be greatly appreciated.

Thanks for your help!
VSERROR.PNG
ASKER CERTIFIED SOLUTION
infotechelg

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros