Partilhar via


Possible issue with ClickOnce publishing using a project created with the XNA Game Studio 3.0 CTP

If you are using ClickOnce to deploy a Windows game created with XNA Game Studio 3.0, you might run into an issue that causes the game to not run correctly after being deployed to a user's computer.  If your Windows game project was originally created with the XNA Game Studio 3.0 CTP, it will not be configured to include the XNA Framework Redistributable 3.0 as a prerequisite by default (because that feature was not added until the 3.0 beta).

In this scenario, you can use the following steps to manually add the XNA Framework Redistributable 3.0 as a prerequisite for your Windows game, and then re-publish your game to get the changes to take effect:

  1. Right-click on your Windows game project in the Visual Studio 2008 or Visual C# 2008 Express Edition solution explorer and choose Properties
  2. Choose the Publish tab
  3. Click the Prerequisites... button
  4. Check the item at the bottom of the list that is named Microsoft XNA Framework Redistributable 3.0
  5. Click OK to dismiss the Prerequisites dialog
  6. Save your project
  7. Publish your project

New Windows game projects created in the final release of XNA Game Studio 3.0 will automatically include the XNA Framework Redistributable 3.0 as a prerequisite by default, so these steps are only needed for Windows game projects originally created with the 3.0 CTP.