在使用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
以上是解決方案,希望可以幫助遇到類似問題的朋友,第一次寫,希望大家多提意見,要是沒有解決的可以留言,謝謝。
