-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Description
Description
The Windows API DesktopWindowXamlSource requires the process to identify the version of the operating system it was tested on by specifying this in it manifest via maxversiontested (dot net had the same problem). Since tests run under testhost.exe, it must specify this to enable tests that use that XAML API to function.
if (CQuirksMode2::QuirkBlockXamlIslands())
{
// Xaml Islands are available from 19H1( 10.0.18226.0 ) release onwards.
::RoOriginateError(E_UNEXPECTED,
Steps to reproduce
Create a test that ties to construct DesktopWindowXamlSource.
Expected behavior
The test can run.
Actual behavior
the test fails due to a fail fast in Xaml
Diagnostic logs
I've got stack traces and source for those interesetd.
Environment
Windows 10 or above.
Here is an example manifest that is suppoorted.
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<assembly
manifestVersion='1.0'
xmlns:asmv3='urn:schemas-microsoft-com:asm.v3'
xmlns='urn:schemas-microsoft-com:asm.v1'>
<compatibility xmlns='urn:schemas-microsoft-com:compatibility.v1'>
<application>
<maxversiontested Id='10.0.18362.0'/>
<maxversiontested Id='10.0.19041.0'/>
<maxversiontested Id='10.0.22000.0'/>
<supportedOS Id='{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' />
</application>
</compatibility>
<application xmlns='urn:schemas-microsoft-com:asm.v3'>
<windowsSettings>
<dpiAware xmlns='http://schemas.microsoft.com/SMI/2005/WindowsSettings'>true/PM</dpiAware>
<dpiAwareness xmlns='http://schemas.microsoft.com/SMI/2016/WindowsSettings'>PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>
Metadata
Metadata
Assignees
Labels
No labels