Fixing the The Target “GetCopyToOutputDirectoryContentProjectItems” does not exist in the project exception when building your WP7 project

My colleague was installing the Windows Phone 7.1 SDK today and we received the following errors during installation plus a popup box that the bootstrapper had an exception:

Setup could not install the following components:

  • Microsoft XNA game Studio 4.0 Refresh
  • Windows Phone SDK 7.1 Extensions for XNA Game Studio 4.0

sdk error

We retried installing the SDK after a full uninstall and a reboot but this wouldn’t help. This error kept appearing. In the end my idea was that we didn’t need XNA any time soon so we would just let this rest and see if everything was still working. Visual studio 2010 opened up fine, Blend  was working All the templates for a  phone project were there so everything seemed ok.

A few hours later when my colleague opened up an already made project from source control and tried to build the project she informed me that she was getting build errors so I had a look. The exception was

The Target “GetCopyToOutputDirectoryContentProjectItems” does not exist in the project

I never heard of this error before and checked if the project was still building on my machine. Ofcourse it was so the problem was somewhere in her environment. I didn’t immediately make the connection of the XNA installation failure but after some searching I found out that it had to do with some of the MSBUILD .target files that Windows Phone 7.1 projects use that have dependencies on the XNA Game studio.

Getting XNA Game studio installed properly seemed the solution so we tried to get that fixed. The solution is in getting the XNA studio installed without use of the bootstrapper that was crashing and Aaron Stebner made a good post on how to do that here.

Follow all the steps in Aarons guide (the file from step 9 didn’t exist for me so I skipped it) and after this the project would build again.

Everyone happy and back to coding Smile Hopefully this post can help someone else when they run into the same problems as we did because we’ve spend to much precious time to fix this.

Geert van der Cruijsen

Share on Facebook
Kick It on DotNetKicks.com
Shout it
Post on Twitter

12 thoughts on “Fixing the The Target “GetCopyToOutputDirectoryContentProjectItems” does not exist in the project exception when building your WP7 project

  1. Pingback: The W8 is almost over! Letölthető a Windows 8 Consumer Preview « W8 for it…

  2. It can be troublesome if your new symptoms develop from a pre-existing one.
    The FTC has been cracking down on companies for their unreasonable and unproven claims that
    Cortislim usage will cause a person to lose weight.
    Crunch is reknowned for having popular DJs play live sets in their gyms.

  3. The vacuum created from the disc aids to drag any herniated or protruded disc
    material back into the disc and stimulate blood supply, and thereby accelerate the healing process.
    Secondly, neck pain may modify the shoulders along with the arms.
    The herbal natural home remedies for cervical spondylosis will
    replace the displaced discs.

  4. Anxiety, according to the Report with the Surgeon General, could be the most common emotional disorder among adults in addition to
    during childhood and adolescence. either due to a
    move or perhaps a change in the family unit or because no routine has been
    successfully established. They are nearly all, to some degree, potentially addictive.

  5. The most widely used and initial way is the questioning
    and observing the patient. They are providers of various types
    of psychotherapy services, especially paartherapie Berlin.
    In an expression, they are all, ‘behavioral’, but that term, usually refers to
    a particular form of treatment, loosely associated with learning theory,
    the industry subtype in the psychological approaches.

  6. You and your therapist should agree upon realistic goals for your therapy
    in the beginning, recognizing that frequently goals may change during treatment.
    interpersonal connections are the most vital step to be considered when taking
    care of the patient. s theory of temporality firstly states that this human
    experience with time is finite: will end.

  7. Greetings, I do think your blog might be having internet browser compatibility issues.
    Whenever I look at your web site in Safari, it looks fine however, when opening
    in I.E., it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Besides that, wonderful website!

  8. The utilisation of the medication cause serious unwanted effects
    associated with their use, including liver damage, and liver, weakened immune system and heart failure.
    died not too long ago, but last 1991 he’d a five to six storied building which was devoted to what he termed Complementary Medicine. Now a candida albicans is exactly what it sounds such as an overgrowth of yeast.

  9. My family members always say that I am killing my time here at
    net, but I know I am getting experience daily by reading such pleasant articles.

  10. “It just didn’t come around the way I wanted it to,
    ” he said. Spinal decompression is really a form of traction that requires alternate phases
    of distraction and relaxation, continuously maintaining proper positioning.
    The trouble is that one such antioxidant molecule from whatever source can neutralize just one or two free-radical molecules before it’s depleted.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>