Trying to compile for Windows Phone 7Monkey Targets Forums/XNA/Trying to compile for Windows Phone 7
| I compile my project for XNA and opens the project in Visual Studio 2010 express.
But I get an error:
One or more projects in the solution were not loaded correctly. Please see the Output Window for details.
In solution explorer it says:
Windows Phone Copy of MonkeyGame (unavailable)
Xbox 360 Copy og MonkeyGame (unavailable)
If I right click on the any of the item in the solution explorer I do not get a option to copy to Window Phone.
If I right-click on Windows Phone Copy of MonkeyGame and select "Reload Project" I get an "Object reference not set to an instance of an object" error.
I tried Marks FirePainter example but get the same error.
What can I do to compile my game to the Windows Phone simulator?
| Have you installed that Windows Phone stuff correctly?
| What Windows phone stuff.
I installed Viual Developer for phone express, is it that you mean?
| Are you letting monkey fully build the projects first, are you sure it does not list any errors?
If you are saving your projects or Monkey in Program Files or some other UAC controlled directory then don't.
Also there are two versions of Visual Studio Express, you need the following:
'Visual C# 2010 Express and XNA 4.0 are requred for XNA target support and are currently available here:
| When I compile in TED I get 9 warnings and 0 errors.
When I load the project into Visual STudio I get this:
C:\Users\JensThomsen\Desktop\MonkeyPro\Trisect Development\Planet Defender\PlanetDefender.build\xna\MonkeyGame\MonkeyGame\MonkeyGame.csproj : error : Object reference not set to an instance of an object. C:\Users\JensThomsen\Desktop\MonkeyPro\Trisect Development\Planet Defender\PlanetDefender.build\xna\MonkeyGame\MonkeyGame\Xbox 360 Copy of MonkeyGame.csproj : error : Object reference not set to an instance of an object. C:\Users\JensThomsen\Desktop\MonkeyPro\Trisect Development\Planet Defender\PlanetDefender.build\xna\MonkeyGame\MonkeyGame\Windows Phone Copy of MonkeyGame.csproj : error : Object reference not set to an instance of an object.
MonkeyGame for Windows Phone is still unavailable.
I reinstalled Visual Studio and XNA.
I installed Service Pack for Visual Studio.
I saving my game under folder MonkeyPro on the desktop.
| Have you opened the sln file with VS or the project files?
If you like you can send me your XNA project (no need for the original Monkey source if you don't like that!)
| I'm opening the SLN file.
I have put the file on my server.
Get the file.
| Got it. Works great for me.
Just a note: Set the windows phone copy as startup project! After that, do a right click on that project and choose "debug->start new instance" (or however this is called in the english version).
| But my Windows Phone Copy of MonkeyGame is unavailable.
I can't do anything with it!
All three copy's of MonkeyGame is unavailable.
| Strange. I just use the VS Express version...
| I'm using the VS 2010 Express version for Windows Phone.
Maybe I should uninstall VS and XNA and start all over.
| Okay reinstalling got me a lot further.
But but but I'm not through yet!
If I try to run the project (F5) I get two errors.
1#, No devices are available to deploy project 'Xbox 360 copy of MonkeyGame"
2#, The current display adapter does not meet the emulator requirements to run XNA framework applications.
I did set the Windows Phone Copy of MonkeyGame as Startup project
| 1) means you should select the emulator as target and not a real device to deploy to.
2) well ok... *g* what kind of gfx card do you have?
| 1) I can select any thing just click the run(F5 debug) button with "Windows Phone Emulator" grayed out.
2) I have a Geforce Go 7300 in my Lenovo laptop.
I removed the Xbox 360 from my solution and got rit of the first error. (I think)
I'm just trying to install a new DirectX version to see if that helps
| I think my laptop does not run WDDm1.1 and thats why it will not work.
I'll try on my other laptop(newer) tomorrow.
Thank for all your help so far. I may be back with more questions if the other laptop does not work.
| Good luck!
| Finally I got it working.
Moved to another(newer) laptop, reinstalled all the software.
So now I can check my game on the WP7 emulator and its working just fine.
| Great! So it will work on a real device as well!
| Yes I just signed up for a Microsoft Developer Licence(or whatever its called)
And I hope I'll have my game ready for download on WP7 soon.
| @Tri|Ga|De I too cannot seem to get my apps to compile and run on the emulator. It's error after error, uhg.
Would you mind listing all the things you installed on your newer laptop? I would like to start over too, but am not sure what to do.
| I installed
Visual Studio C# 2010 Express
Visual Studio for Phone Development
Service Pack 1 for Visual Studio 2010 Express
I thinkt this is the list.
| Awesome, thank you, I'll give it a whirl.