Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.79 KB

File metadata and controls

45 lines (33 loc) · 2.79 KB
page_type languages products name urlFragment description extendedZipContent
sample
csharp
cpp
windows
windows-app-sdk
Unpackaged App Sample
Unpackaged
Demonstrate how to use the Windows App SDK in non-MSIX (unpackaged) application.
path target
LICENSE
LICENSE

Use the Windows App SDK from non-MSIX deployed applications

These samples demonstrate how simple it is to use the Windows App SDK from a non-MSIX (unpackaged) application using the auto-intialization that is part of the Windows App SDK NuGet package.

List of Samples

  • Basic - C++ - Console app sample showing how to set a project property that initializes access to the Windows App SDK and call a simple API.
  • Basic - C# - Console app sample showing how to set a project property that initializes access the Windows App SDK and call a simple API.

Scenarios covered in these samples

Using the Windows App SDK in an unpackaged desktop app

When using the Windows App SDK in an unpackaged app, the developer needs to add a PackageReference to the Windows App SDK NuGet and set <WindowsPackageType>None</WindowsPackageType> in the project file. This property tells the build system to auto-initialize the framework package for use with the app using module initializers in both C# and C++. If developers want more control over the initialization, they can explicitly call the Bootstrapper APIs to initialize the framework package. See Referencing the Windows App SDK framework package at run time.

Prerequisites

Building and running any of the samples

  • Open the solution file (.sln) from the subfolder of your preferred sample in Visual Studio.
  • From Visual Studio, either Start Without Debugging (Ctrl+F5) or Start Debugging (F5).

Related Links