16

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.

Error Message

Joachim Velzel
  • 657
  • 2
  • 9
  • 21
  • 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: http://stackoverflow.com/questions/10881005/how-to-install-xna-game-studio-on-visual-studio-2012 – krolth Jul 10 '13 at 06:06
  • yes, that is what I used, I forgot to put the link in – Joachim Velzel Jul 10 '13 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 Velzel Jul 12 '13 at 00:06
  • 1
    As answered by @JoachimVelzel, you need to select a project as default project http://censore.blogspot.com/2015/10/visual-studio-quirks.html – biplav Oct 09 '15 at 12:47

4 Answers4

23

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.

Joachim Velzel
  • 657
  • 2
  • 9
  • 21
2

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

Anh Bui
  • 31
  • 3
1

You will find the project loading unavailable (in Solution Explorer), just need to right-click then Reload Project.

BNK
  • 23,994
  • 8
  • 77
  • 87
0

If you run in this issue for Xbox One application (Durango) here's how I solved,

  1. uninstall XDK & ADK
  2. Reinstalling XDK then ADK.

Posting here so it can help someone.

mehul9595
  • 1,925
  • 7
  • 32
  • 55