Visual Studio 2010 forgets references when building

Wow, this was really driving me nuts.

I added in my CRM references, then when tried to build the solution I got errors complaining it couldn’t find the references to CRM.

AGHGHGHGGHGHGHGHGHGGHGH

Finally I found out what was causing the problem

I had to go into project propertise and then change the target framework from

“.NET Framework 4 Client Profile”

to

“.NET Framework4”

I finally found the answer here

WHY WHY WHY WHY

2 thoughts on “Visual Studio 2010 forgets references when building

  1. m4ttification September 22, 2011 / 11:55 am

    Thanks, it worked for me 🙂

    Like

  2. Alan8 July 9, 2012 / 10:03 pm

    Thanks, that was quite annoying.

    “Microsoft — Adding unnecessary complexity to your work since 1987.”

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.