Microsoft.Windows.ApplicationModel.DynamicDependency Namespace

Provides the ability for unpackaged desktop apps to load framework packages other than the Windows App SDK framework package. After the specified framework package is loaded by an unpackaged desktop app, the app can call APIs provided by the framework package.

Classes

AddPackageDependencyOptions

Defines options that can be applied when adding a run-time reference to a framework package by using the PackageDependency.Add method.

CreatePackageDependencyOptions

Defines criteria that can be applied when creating an install-time reference to a framework package by using the PackageDependency.Create method. This informs the OS that your unpackaged app has a dependency upon a framework package that meets the specified criteria.

PackageDependency

Represents a framework package on which the current app has a dependency, and includes members you can use to manage the lifetime of the dependency.

PackageDependencyContext

Provides context info about a resolved framework package dependency that was created by using the PackageDependency.Add method.

PackageDependencyRank

Represents the default rank value to use to resolve a framework package dependency when using the PackageDependency.Add method.

Structs

PackageDependencyContextId

Encapsulates a unique ID for a resolved framework package dependency that is described by a PackageDependencyContext object.

Enums

PackageDependencyLifetimeArtifactKind

Defines the type of artifacts you can assign to the LifetimeArtifactKind property to define the lifetime of a package dependency.

PackageDependencyProcessorArchitectures

Defines the processor architectures for a framework package dependency that you create by using the PackageDependency.Create method.

Remarks

Before you can use the APIs in this namespace in an unpackaged desktop app, you must first use the Bootstrapper API to load the Windows App SDK framework package. For more information, see Use the Windows App SDK runtime for apps packaged with external location or unpackaged.

See also