Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code

One of the things I routinely do when adding a new class library project, is remove all references and just add them back in as I need them. That is NOT a good idea for Visual Studio 2010. When I DID need System.Core, and went to add it back, this is what I got:

"A reference to 'System.Core' could not be added. This component is automatically referenced..."

After some Googling I found this article:

http://connect.microsoft.com/VisualStudio/feedback/details/525663/cannot-remove-system-core-dll-reference-from-a-vs2010-project

It tells you to add it back manually. Here is the part that needs back in the project file. After the last PropertyGroup node, add this node:

  <ItemGroup>
    <Reference Include="System.Core" />
  </ItemGroup>

You should be good to go again.

Hope this helps.

Posted on Friday, April 23, 2010 1:04 PM | Back to top


Comments on this post: Do NOT remove the reference to System.Core from your VS2010 Project

# re: Do NOT remove the reference to System.Core from your VS2010 Project
Requesting Gravatar...
This did help. It was a little bit of a PITA for an hour.
Left by Dan on Nov 28, 2010 6:32 AM

# re: Do NOT remove the reference to System.Core from your VS2010 Project
Requesting Gravatar...
This did the trick. Thanks!
Left by Joel on Feb 07, 2011 11:12 AM

# re: Do NOT remove the reference to System.Core from your VS2010 Project
Requesting Gravatar...
Thanks Lee Brandt. It helped for me.
Left by LAKSHMIPATHY on Oct 20, 2015 4:59 AM

Your comment:
 (will show your gravatar)


Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net