RuntimeCompatibilityOptions.PatchLevel2 Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets an optional patch level to use if the runtime version matches the major.minor version.
This property enables setting a second patch level to help your app transition to a new version of the Windows App SDK. This is a convenience to allow the patch levels for both the old and new version to be specified during the transition. Apps not in the process of transitioning should set only the one patch level they want to use.
Setting both patch levels for the same major.minor version, such as 1.7.3 and 1.7.4, is not allowed and will generate an error when calling Apply.
public:
property WindowsAppRuntimeVersion PatchLevel2 { WindowsAppRuntimeVersion get(); void set(WindowsAppRuntimeVersion value); };
WindowsAppRuntimeVersion PatchLevel2();
void PatchLevel2(WindowsAppRuntimeVersion value);
public WindowsAppRuntimeVersion PatchLevel2 { get; set; }
var windowsAppRuntimeVersion = runtimeCompatibilityOptions.patchLevel2;
runtimeCompatibilityOptions.patchLevel2 = windowsAppRuntimeVersion;
Public Property PatchLevel2 As WindowsAppRuntimeVersion
Property Value
An optional patch level to use if the runtime version matches the major.minor version. If the runtime version doesn't match the specified major.minor version, then this value is ignored.
Remarks
Instead of directly using PatchLevel2, you could specify this patch level in your app's project file, like this:
<PropertyGroup>
<WindowsAppSDKRuntimePatchLevel2>1.8.2</WindowsAppSDKRuntimePatchLevel2>
</PropertyGroup>