I've just finished what I believe is module 79, integrating Cortana into a UWP app. It failed pretty badly. Following Bob Tabor's example, I put the following code into the constructor of the App class in App.xaml.cs:
public App()
{
Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync(
Microsoft.ApplicationInsights.WindowsCollectors.Metadata |
Microsoft.ApplicationInsights.WindowsCollectors.Session);
this.InitializeComponent();
this.Suspending += OnSuspending;
}
Visual Studio does not like that code at all! Especially it doesn't like the Microsoft.ApplicationInsights... I've got a red squiggly line under all three in the above code. What am I missing? My guess is a reference but I've no idea what the reference is.