XNA Essentials

Game Programming for Xbox 360, PC + Windows Phone

NAVIGATION - SEARCH

Trouble Using Library

I must be really dense, but I can't follow your instructions in Chapter 5 on building and linking the XELibrary successfully. I've copied your code from the CD to my Projects directory, opened it up from the Studio start page, right clicked the XELibrary in the Solution Explorer and selected Build, got the build competed successfully message on the status bar. However when I go to my game and right click Resources, Add Project, nothing is populated in the dialog. XELibrary doesn't show up. What am I missing?

Khoram - Tuesday, June 9, 2009 @ 2:23 PM

Re: Trouble Using Library

You need both projects (the game project AND the XELibrary project) in the same solution.


You can open the game project and then right click on the solution and select Add Project. Browse to it from the open dialog box. At this point you should have one solution with two projects.


Once you have both projects in a single solution, you can right click on the References tree node of the Game/Demo project and select Add Reference.


At this point a dialog box should appear that has several tabs. You want to choose the tab "Projects" and then select XELibrary from the list of projects in the solution.


Hopefully this helps, but if not please let me know!


Chad

Chad Carter - Tuesday, June 9, 2009 @ 9:12 PM

Re: Trouble Using Library

Thanks so much, that explained what I was missing!

Khoram - Tuesday, June 9, 2009 @ 9:28 PM