I used this to use my XNA game in visual studio 2012, everything worked perfectly as it looks but when I click on the debug button on the top bar, "Start Debugging" and "Start Without Debugging" are grayed out and I click on them. I can still click on the "Start" arrow, when I do I get the following error message.
-
What did you do to support your xna project in visual studio 2012? You need to do quite a bit of hacking to make it work. Here is a good reference: stackoverflow.com/questions/10881005/…– krolthCommented Jul 10, 2013 at 6:06
-
yes, that is what I used, I forgot to put the link in– Joachim VelzelCommented Jul 10, 2013 at 22:53
-
now if I find the executable of the project in "Projects/name/name/name/bin/x86/Debug/" it runs just fine. but If I replace bin with obj in the directory, It says "name has stopped working" and it doesn't execute. So it might be something with the obj folder– Joachim VelzelCommented Jul 12, 2013 at 0:06
-
1As answered by @JoachimVelzel, you need to select a project as default project censore.blogspot.com/2015/10/visual-studio-quirks.html– biplavCommented Oct 9, 2015 at 12:47
4 Answers
XNA Solutions come with 2 projects, the Game project and the Content project. Make sure you have the Game Project set as the "start up project". To do this right-click the game project and click "Set as start-up project", it should now work fine.
In general, we have to set the project which is executable (web, winform, console, mobile app...) is start up project so that we can debug / run the solution
-
XNA projects are not like web– user585968Commented Nov 5, 2014 at 2:46
-
I mean this error can happen to any solutions which set the start up project to the project that is unable to start– Anh BuiCommented Nov 6, 2014 at 8:22
-
OK. Consider revising your answer to include this new information. :)– user585968Commented Nov 6, 2014 at 21:50
You will find the project loading unavailable (in Solution Explorer), just need to right-click then Reload Project.
If you run in this issue for Xbox One application (Durango) here's how I solved,
- uninstall XDK & ADK
- Reinstalling XDK then ADK.
Posting here so it can help someone.