You can register your application in either of two ways.
You can quickly register your application by doing the following:
-
Go to the Microsoft Application Registration Portal.
-
Select Add an app.
-
In the Application Name box, enter a name for your application.
-
Ensure that the Guided Setup check box is selected, and then select Create.
-
Follow the instructions for obtaining the application ID, and paste it into your code.
To register your application and add your application registration information to your solution, do the following:
-
If you haven't already registered your application, go to the Microsoft Application Registration Portal.
-
Select Add an app.
-
In the Application Name box, enter a name for your application.
-
Ensure that the Guided Setup check box is cleared, and then select Create.
-
Select Add Platform, select Native Application, and then select Save.
-
In the Application ID box, copy the GUID.
-
Go to Visual Studio, open the App.xaml.cs file, and then replace
your_client_id_here
with the application ID that you just registered and copied.private static string ClientId = "your_application_id_here";