Description
Description
When we run the third-party applications with the latest .NET 10 build, an exception popup with error: System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid' after clicking the button
.
Reproduction Steps
App Repro Steps in Repro machine:
Please refer to the repro machine from DevDiv bug
Update the runtime in C:\Users\test01\Desktop\App\Artemis\Artemis.UI.Windows.runtimeconfig to run against dotnet-sdk-10.0.100-preview.6.25314.101, before launching the app.
"framework": {
"name": "Microsoft.NETCore.App",
"version": "10.0.0-preview.6.25314.101"
}
1.Launch “C:\Users\test01\Desktop\App\Artemis\Artemis.UI.Windows.exe”.
2.Click “Library”.
3.Click “Delete”.
4.Click “Confirm” button.
Expected behavior
Delete successfully
Actual behavior
Popup window with error:
System.InvalidOperationException: A value of type 'System.String' cannot be converted to a 'System.Guid'.
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_NodeUnableToConvert(Type sourceType, Type destinationType)
at System.Text.Json.Nodes.JsonValue`1.GetValue[T]()
at Artemis.WebClient.Workshop.Models.InstalledEntry.TryGetMetadata[T](String key, T& value) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.WebClient.Workshop\Models\InstalledEntry.cs:line 91
at Artemis.WebClient.Workshop.Handlers.InstallationHandlers.ProfileEntryInstallationHandler.UninstallAsync(InstalledEntry installedEntry, CancellationToken cancellationToken) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.WebClient.Workshop\Handlers\InstallationHandlers\Implementations\ProfileEntryInstallationHandler.cs:line 69
at Artemis.UI.Screens.Workshop.Library.Tabs.InstalledTabItemViewModel.ExecuteUninstall(CancellationToken cancellationToken) in C:\Users\AppCompat\Desktop\Publish App\AppSource\Artemis\src\Artemis.UI\Screens\Workshop\Library\Tabs\InstalledTabItemViewModel.cs:line 82
at ReactiveUI.ObservableMixins.<>c__DisplayClass1_1.<<FromAsyncWithAllNotifications>b__1>d.MoveNext() in /_/src/ReactiveUI/Mixins/ObservableMixins.cs:line 42
Regression?
Yes
Verify Scenarios:
1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.400: Pass
2). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.5.25277.114: Pass
3). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.6.25309.101: Pass
4). Windows 10 21H2 AMD64 + dotnet-sdk-10.0.100-preview.6.25314.101: Fail
Known Workarounds
No response
Configuration
Application Name: Artemis
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-preview.6.25314.101
App Source & repro machine checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2507291
Github Link:
https://github.com/Artemis-RGB/Artemis
Other information
@dotnet-actwx-bot @dotnet/compat