[bug] Windows App Certification Kit FAILED "crashes and hangs test" on empty VS2017 project

  • Thread starter Thread starter Angel Ts
  • Start date Start date
A

Angel Ts

Guest
Windows App Certification Kit via VS2017 rise the error: FAILED - crashes and hangs test on empty project!!!

Win10Pro, 1803, 16.11.2018, 17134.407, VS2017 15.9.3

________________________________________________________________________________________

MainPage.xaml.cs:

using Microsoft.Toolkit.Uwp.Notifications;
using System;
using Windows.UI.Notifications;
using Windows.UI.Popups;
using Windows.UI.StartScreen;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

using System.Net.Http;
using System.Net.Http.Headers;
using Windows.Data.Json;

using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Windows.ApplicationModel.Background;
using Windows.Data.Xml.Dom;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Windows.Web.Syndication;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace LiveTiles_Stocks_Notifications
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage : Page
{
//Auto Update

public MainPage()
{
this.InitializeComponent();

}

private async void ButtonPIN_Click(object sender, RoutedEventArgs e)
{

}

private void ButtonSTART_Click(object sender, RoutedEventArgs e)
{

}

}
}

___________________________________________________________

BlogFeedBackgroundTask.cs:

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

// Added during quickstart
using Windows.ApplicationModel.Background;
using Windows.Data.Xml.Dom;
using Windows.UI.Notifications;
using Windows.Web.Syndication;

using Microsoft.Toolkit.Uwp.Notifications;
using Windows.UI.Popups;
using Windows.UI.StartScreen;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

using System.Net.Http;
using System.Net.Http.Headers;
using Windows.Data.Json;

namespace BackgroundTasks
{
public sealed class BlogFeedBackgroundTask : IBackgroundTask
{
//Auto Update

public async void Run( IBackgroundTaskInstance taskInstance )
{
// Get a deferral, to prevent the task from closing prematurely
// while asynchronous code is still running.
BackgroundTaskDeferral deferral = taskInstance.GetDeferral();

// Inform the system that the task is finished.
deferral.Complete();
}

}
}

Continue reading...
 
Back
Top