Open mavaa opened 1 month ago
We have also verified that the issue happens on Windows 11 (23H2) Build 22631.4317
This has already been fixed in the latest Windows SDK projection update which will be available by default in next month's .NET SDK servicing update. In the meantime, you can use the WindowsSdkPackageVersion
property to pick up a newer version of the package than the default. In your case, since you target 19041 and .NET 8, you can use the put the below in your csproj or a common props file. Once next month's .NET SDK servicing update is out, you can remove it.
<WindowsSdkPackageVersion>10.0.19041.53</WindowsSdkPackageVersion>
Describe the bug
The attached project illustrates our problem. We have an ObservableCollection<Guid?> that we bind to a DependencyProperty and use to display a list and a counter of unique IDs. Up until Visual Studio v 17.11.4 this was working fine, but after upgrading to 17.11.5 (and the WindowsAppSDK from 1.5.240428000 to 1.6.240923002) the following exception pasted below started happening during startup and the initial setting of the property. We worked around this temporarily by staying at VS 17.11.4 and the older WindowsAppSDK, but this week it seems like devops pipelines has upgraded to the new version, causing all our builds to crash with the same error during startup. This also confirms that the issue happens if you run VS 17.11.5 (assuming that's what the devops runner is using), and WindowsAppSDK 1.5.240428000.
TestNullableGuidObservableCollection.zip
Steps to reproduce the bug
Expected behavior
For the attached application to start up fine, and no error to occur.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows 11 (21H2): Build 22000
Additional context
No response