I'm trying to build a project for Xbox, and when I try to Package as an XNA Creator's Club Game I receive the following errors:
The best overloaded method match for 'Pong.MessageBoxScreen.MessageBoxScreen(Microsoft.Xna.Framework.Game, string)' has some invalid arguments.
Argument 1: cannot convert from 'string' to 'Microsoft.Xna.Framework.Game'
Argument 2: cannot convert from 'bool' to 'string'
/// <summary>
/// Event handler for when the Unlock Game menu entry is selected.
/// </summary>
void UnlockMenuEntrySelected(object sender, PlayerIndexEventArgs e)
{
#if XBOX
try
{
Guide.ShowMarketplace(e.PlayerIndex);
}
catch (GamerPrivilegeException gamerPrivilegeException)
{
const string message = "Please use Xbox Live account.";
MessageBoxScreen promptForPurchase = new MessageBoxScreen(message, false);
ScreenManager.AddScreen(promptForPurchase, e.PlayerIndex);
}
#else
const string message = "Unlock Full Game (Xbox Only)";
MessageBoxScreen unlockMessageBox = new MessageBoxScreen(Game, message, false);
ScreenManager.AddScreen(unlockMessageBox, e.PlayerIndex);
#endif
}
Everything within the #if XBOX area is grayed out, I suppose because it is surrounded by that tag.
What do you think is suddenly causing these issues, and how can I correct it?