zune hd 用の新しいプロジェクト テンプレートによって作成されたアプリケーションをビルドしてデプロイしました。問題は、アプリケーションが終了するたびに Zune が再起動することです。これは、PC からリモートでデバッグしている場合、またはデバイスから直接実行している場合に発生します。デバッグ モードとリリースの両方で発生します。基本的なテンプレート コードを含めましたが、かなり一般的です。誰にもアイデアはありますか?
public class DrawGame : Microsoft.Xna.Framework.Game
{
private GraphicsDeviceManager m_graphics;
private SpriteBatch m_spriteBatch;
public DrawGame()
{
m_graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
TargetElapsedTime = TimeSpan.FromSeconds(1 / 30.0);
}
protected override void Initialize()
{
base.Initialize();
}
protected override void LoadContent()
{
m_spriteBatch = new SpriteBatch(GraphicsDevice);
}
protected override void UnloadContent()
{ }
protected override void Update(GameTime gameTime)
{
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
{
this.Exit();
}
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime)
{
GraphicsDevice.Clear(Color.CornflowerBlue);
m_spriteBatch.Begin();
m_spriteBatch.End();
base.Draw(gameTime);
}
}