Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

HELP, TO Optimize or NOT TO Optimize

$
0
0

@Paul_Crawley wrote:

could someone, anyone please tell me why this piece of code works fine without code optimization turn on yet does absolutely nothing when optimize is turned on?

/*********************************************************************************************
 * Function Name : AdReady
 * Description : Triggered when the Ad is reaady to be displayed
 * ******************************************************************************************/
public async void InterstitialAd_AdReady(object sender,object e)
{
  adReady = true;
  // now go off and wait until we can come back
  await Task.Run(() =>
  {
    while(!adTrigger)
    {
    }
  });
  interstitialAd.Show();
}

Apprently optimize MUST be turned on to upload to the store or i get
=>
The declared package dependency does not exist. Dependency: Microsoft.NET.Native.Framework.Debug.1.7. Minimum version: 1.7.25531.0. Please upload the .appxupload file generated by Visual Studio for the Store. Learn more
<=
so eiter could someone let me know either:-
1) why does this not work
2) how to upload to the store and not get the error?

thx

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles