Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

XNA Game Studio 4.0 sample content is now available directly within Visual Studio 2010

XNA Game Studio 4.0 sample content is now available directly within Visual Studio 2010

Rate This
  • Comments 7

In past releases, we have published XNA Game Studio developer education content on the Creators Club site, and we have continued to do so as new XNA Game Studio 4.0 content is published.  The recently released XNA Game Studio 4.0 integrates into the Visual Studio 2010 family of products.  Visual Studio 2010 has some new features to provide direct access from the VS IDE to tools and developer education content hosted on the Visual Studio Gallery web site.

XNA Game Studio 4.0 sample content on the VS Gallery

We’ve started converting some of the XNA Game Studio 4.0 samples into project templates and publishing them on the Visual Studio Gallery in addition to posting them on the Creators Club site.  We created an account named XNA GS Education on the VS Gallery web site and have posted an initial set of project templates for XNA Game Studio 4.0 content using that account.  You can see a full list of available content on the VS Gallery web site, and you can find XNA Game Studio 4.0 sample content in the Visual Studio 2010 New Project dialog and in the Extension Manager.

In addition, anyone inside or outside of Microsoft can post their own sample content on the VS Gallery web site and it will show up in the same locations in the VS IDE as the content that we are uploading.  The packaging process is a little tricky – it requires creating a VS 2010 project template and then creating a .vsix file with some specific settings.  We are thinking about ways that we can make the VS Gallery publishing process easier for the XNA Game Studio team and the community.  For now, this is a somewhat manual process, and that is why there is currently only a small amount of XNA Game Studio content aside from the entries that our team has published.

Accessing online templates via the Visual Studio 2010 New Project dialog

XNA Game Studio sample content is available within the New Project dialog in Visual Studio 2010, Visual C# 2010 Express and Visual Studio 2010 Express for Windows Phone.  To access this content via the New Project dialog, you can do the following:

  1. Click on File | New | Project...
  2. Click on the Online Templates link on the left side of the New Project dialog
  3. Click on the XNA Game Studio node, and you will see a list of available XNA Game Studio sample project templates that looks like the following:

  4. Click on one of the templates, enter a name and location and click OK
  5. Visual Studio will download the template, install it for you and open a new instance of the template that you can start coding in
  6. After you have installed the template, it will appear in the Installed Templates list in the New Project dialog.  In the screenshot above, you can see green check marks next to the Windows Game State Management and the Windows Phone Game State Management items – those are templates that I have already installed on my computer

Accessing online templates, controls and tools via the Visual Studio 2010 Extension Manager

XNA Game Studio sample content is available in Extension Manager in Visual Studio 2010.  The Extension Manager is not available in Visual C# 2010 Express or Visual Studio 2010 Express for Windows Phone.  To access this content via Extension Manager, you can do the following:

  1. Click on Tools | Extension Manager...
  2. Click on the Online Gallery link on the left side of the Extension Manager
  3. Expand the Templates node
  4. Click on the XNA Game Studio node, and you will see a list of available XNA Game Studio sample project templates.  The list of items in this UI is the same as you will see in the New Project dialog.
  5. You can install and uninstall tools and templates from the Extension Manager
  6. After installing one of the XNA Game Studio project templates, you can go to the New Project dialog, find it in the Installed Templates list and create a new instance of the template from there

In general, I tend to use the New Project dialog to access this XNA Game Studio sample content, even if I’m using an edition of VS 2010 that supports Extension Manager because I prefer the simpler experience of installing + instantiating the template in a single step that is the same as the step I use to instantiate one of the in-box project templates.

If you are an XNA Game Studio developer, I encourage you to install a VS 2010 edition and XNA Game Studio 4.0 if you haven’t yet and check out some of the great sample content available directly from the VS 2010 IDE.

  • Nice!

  • They are not all working fine... Some are setted to HiDef but actualy works perfectly on Reach. I'm on a Reach GPU and of course it was not working on my machine, but I just changed to Reach and they worked!

    Anyway, thanks for that, nice tutorials!

  • Hi Alexandre Zollinger Chohfi - We decided to make Windows samples default to the HiDef profile even if the sample code doesn't strictly require the HiDef profile because that is what the default Windows game templates that ship with XNA Game Studio 4.0 do.  If you are running on a computer that doesn't have a graphics card that supports the HiDef profile, then you'll need to change the profile to Reach in order to run the samples (unless the samples are specifically demonstrating something that requires the HiDef profile, and in those cases you won't be able to run the sample on a computer that doesn't have a HiDef-capable graphics card, although you can still look at the source code and learn some of the techniques being demonstrated by the sample).

  • that don't work on windows 8. Is there another way that work on windows 8?

  • Hi Dingle - What doesn't work exactly?  Can you describe in more detail what you tried to do and what error you are seeing?

    If you are referring to installing XNA Game Studio 4.0 on Windows 8, then there is a known installation issue, and you'll need to use a workaround like the one described at blogs.msdn.com/.../10274694.aspx.

  • I can't find anything about beginning from Zero :3 , :( any advice or place to collect some info guys ?

  • Hi vbcracker - I'm sorry, but I don't understand the problem that you're running into.  Can you please provide more details about exactly what you're trying to do and what (if any) error messages you are seeing?

Page 1 of 1 (7 items)
Leave a Comment
  • Please add 1 and 1 and type the answer here:
  • Post