Skip to content

[Windows] Fixed Setting a ContentView with a content of StaticResource Style Causes a System.Runtime.InteropServices.COMException.#30047

Merged
kubaflo merged 3 commits into
dotnet:inflight/currentfrom
Ahamed-Ali:fix-29930
Mar 21, 2026
Merged

[Windows] Fixed Setting a ContentView with a content of StaticResource Style Causes a System.Runtime.InteropServices.COMException.#30047
kubaflo merged 3 commits into
dotnet:inflight/currentfrom
Ahamed-Ali:fix-29930

Added the test case and test sample

365bb42
Select commit
Loading
Failed to load commit list.
Azure Pipelines / MAUI-UITests-public failed Oct 28, 2025 in 11h 50m 16s

Build #9.0.120-ci+pr.30047.azdo.152552 had test failures

Details

Tests

  • Failed: 2 (0.02%)
  • Passed: 8,465 (98.57%)
  • Other: 121 (1.41%)
  • Total: 8,588

Annotations

Check failure on line 707 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L707

PowerShell exited with code '1'.

Check failure on line 2235 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L2235

PowerShell exited with code '1'.

Check failure on line 20 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L20

There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

Check failure on line 7 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Build log #L7

Could not find a part of the path '/Users/builder/azdo/_work/2/s/.appium/node_modules/appium-xcuitest-driver/node_modules/Logs/Test/Test-WebDriverAgentRunner-2025.10.27_11-33-26--0700.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-BCB50DCB-09AC-4425-A5E1-78FD7D8E6F9D-Configuration-Test Scheme Action-Iteration-1/WebDriverAgentRunner-22AB6FCD-995A-4ED5-B812-6C3353D4F489'.

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.FlyoutPageFeatureTests(Android).VerifyFlyoutPage_IsGestureEnabledFalse

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Microsoft.Maui.TestCases.Tests.FlyoutPageFeatureTests(Android).VerifyFlyoutPage_IsGestureEnabledFalse

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at UITest.Appium.HelperExtensions.GetRect(IUIElement element) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 120
   at Microsoft.Maui.TestCases.Tests.FlyoutPageFeatureTests.VerifyFlyoutPage_IsGestureEnabledFalse() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/FlyoutPageFeatureTests.cs:line 112
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.Maui.TestCases.Tests.StackLayoutFeatureTests(Windows).VerticalStackLayout_Spacing_With_Height

See this annotation in the file changed.

@azure-pipelines azure-pipelines / MAUI-UITests-public

Microsoft.Maui.TestCases.Tests.StackLayoutFeatureTests(Windows).VerticalStackLayout_Spacing_With_Height

VisualTestUtils.VisualTestFailedException : 
Snapshot different than baseline: VerticalStackLayout_Spacing_With_Height.png (0.68% difference)
If the correct baseline has changed (this isn't a a bug), then update the baseline image.
See test attachment or download the build artifacts to get the new snapshot file.

More info: https://aka.ms/visual-test-workflow
Raw output
   at VisualTestUtils.VisualRegressionTester.Fail(String message)
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext)
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|8_0(String name, <>c__DisplayClass8_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 354
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance, Boolean includeTitleBar) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 205
   at Microsoft.Maui.TestCases.Tests.StackLayoutFeatureTests.VerticalStackLayout_Spacing_With_Height() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/StackLayoutFeatureTests.cs:line 251
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)