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

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

  1. IT security vendors sell software that filters out or blocks
    known websites and prevents the sharing of P2P files. She wwas [put]
    on seven drugs — some of them heavy-duty, addictive ones such
    as barbiturates and benzodiazepines. To hack a Facebookaccount free of charge,
    hackers try to catch you when you least expect it.

    My website :: cracker wifi

  2. Be – ITCertified has compiled Microsoft 70-506with original exam 70-506 Exam Prep and accurate answers as they
    will appear in the actual exam. This Microsoft points become of various ones and the
    discounted Microsoft points ‘re an example pertaining to such points.
    Most of you already know how to move icons and
    add widgets, but there are a few additional tips to know that ADW packs
    along within the launcher.

    Here is my web site … points microsoft gratuit

  3. Think of this,spoken at the tender regarding 14 by the uncompromising Augstin Bootlegger ‘The success of any
    political system can simply truly be assessed when the fat lady has being sung.
    Citation generators can be found via a simple Google search.

    At the same time, it’s clear to college level users such as U of O student
    Robert Andrews and others tat ‘Facebook is out of touch with the English
    language in communicating without computer speak.

    My web-site Hacking Computers

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>