Skip to content

What reference do I need to include in order to make Cortana integration work? #7

@rfalanga

Description

@rfalanga

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions