page_type | languages | products | name | urlFragment | description | extendedZipContent | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
Dynamic Dependencies Sample |
DynamicDependencies |
Demonstrate how to use Dynamic Dependencies API to load MSIX framework packages in any application |
|
Dynamic Dependencies is an API in the Windows App SDK that enables applications the ability to dynamically load MSIX framework packages. This sample demonstrates how to use those APIs to dynamically load the DirectX Runtime MSIX framework package.
The C++ DirectX sample (D3D9Ex) is built using the older DirectX9 SDK, but updated to show how to use Dynamic Dependencies and the DirectX Framework package instead of the DirectX redist.
This sample shows how to add a reference to another MSIX framework package (DirectX) by explicitly using the Dynamic Dependency API. For more information on these concepts, please refer to Use the dynamic dependency API to reference framework packages at run time.
- See System requirements for Windows app development.
- Make sure that your development environment is set up correctly—see Install tools for developing apps for Windows 10 and Windows 11.
- Since the sample is unpackaged, make sure to also install the prerequisites for deploying unpackaged apps to ensure that the appropriate MSIX dependencies are installed.
- DirectX SDK dependencies: To build and run the DirectX sample, you need to download and install the following:
- DirectX SDK
- DirectX framework package: choose the architecture-appropriate version (x86 or x64)
- 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).