关于The target "GetCopyToOutputDirectoryContentProjectItems" does not exist in the project.的解决方法
在使用win8之后,安装Windows Phone SDK 7.1 Beta2后出现The target "GetCopyToOutputDirectoryContentProjectItems" does not exist in the project的错误(新建的工程,还未假如任何代码),在各大论坛学习之后,终于将这个问题解决了.现在将解决方案献给大家,希望高手略过,新手遇到的能顺利解决.好了,不说那么多废话了.下面是解决方案.
http://blogs.msdn.com/b/astebner/archive/2009/06/12/9740290.aspx,关键是安装上xna game studio ,但是按照xna game studio 的bootstrapper(引导程序)安装的话怎么也不会成功,有的博友说的先卸载再重装的方法也没有用,根据以上的链接按照以下步骤进行:
- Download xnags40_setup.exe and save it to your hard drive(下载xnags40_setup.exe)
- Run xnags40_setup.exe /x to extract the contents to a folder of your choosing(解压xnags40_setup.exe到任意一个你所选择的文件夹,相当于把exe程序作为rar压缩包来处理 )
(明白了第二步之后,以下部分就可以按照步骤走就可以了,假如你发现没有以下的某个文件,将该步骤忽略即可)
- Go to the folder you extracted to in step 2 and run the MSI named redists.msi
Note: This MSI will only display a small progress bar while it is installing and will not tell you when it is done. When the progress bar disappears, continue to the next step.
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\XLiveRedist.msi
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Redist\XNA FX Redist\xnafx40_redist.msi
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnaliveproxy.msi
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_platform_tools.msi
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_shared.msi
- Run the MSI at %ProgramFiles%\Microsoft XNA\XNA Game Studio\v4.0\Setup\xnags_visualstudio.msi
- Go to the folder you extracted to in step 2 and run the MSI named arpentry.msi
以上是解决方案,希望可以帮助遇到类似问题的朋友,第一次写,希望大家多提意见,要是没有解决的可以留言,谢谢。