0
votes

I'm using XNA 4.0 with VS 2010. When I start a new project, a decent amount of the resources have broken links; other sites where people have encountered this problem suggest manually fixing the file paths, which works but is bothersome when I'm creating several new projects (I'm following various tutorials to learn my way around XNA). Does anyone know if there is a way to fix the underlying problem, rather than changing the file paths for each new project?

2
More information? Screenshots? Full error readouts? Links to those "other sites"? - Andrew Russell
It tries to add resources and can't find them. The warning gives no more information than I already have (The referenced component 'Microsoft.XNA.Framework.xxx' could not be found.) Here are a few links, since you asked: gamedev.net/topic/… (somebody else with the same problem) blogs.msdn.com/b/astebner/archive/2010/09/17/10064091.aspx (I have never installed the beta version so the bulk of this page does apply. Apparently that causes the same problem though, so I used the solution here.) - bendicott

2 Answers

1
votes

Are you trying to use Contents of other project in one solution ? Than you add to your Content Project Reference's the external Content you want to use. Jon's answer is already works fine, I already prefer Jon's answer :)

0
votes

If you put your resources in the Content directory, then copy the Content directory to your new project, it should retain all the files and the links should still be good.

Not sure what the problem is exactly, possibly provide more information on the problem so that we can get a better idea of what is wrong.