You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using System.Text json source generation mode, the JsonObjectCreationHandling.Populate option does not work correctly when having a required init property in the class.
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.103\
Installierte .NET-Workloads:
Es sind keine installierten Workloads zum Anzeigen vorhanden.
Konfiguriert für die Verwendung loose manifests beim Installieren neuer Manifeste.
Description
When using System.Text json source generation mode, the JsonObjectCreationHandling.Populate option does not work correctly when having a required init property in the class.
Reproduction Steps
Expected behavior
The
Values
from the json payload are appended to the existingIList<int> Values
in all cases.Actual behavior
Running the code snippet does not generate an runtime error, but does not append
[4, 5, 6]
in thenotWorking
-Variable case. Output:Regression?
No response
Known Workarounds
No response
Configuration
.NET SDK:
Version: 9.0.103
Commit: 96da45d427
Workload version: 9.0.100-manifests.ea610b94
MSBuild version: 17.12.24+90b52dda6
Laufzeitumgebung:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.103\
Installierte .NET-Workloads:
Es sind keine installierten Workloads zum Anzeigen vorhanden.
Konfiguriert für die Verwendung loose manifests beim Installieren neuer Manifeste.
Host:
Version: 9.0.2
Architecture: x64
Commit: 80aa709
.NET SDKs installed:
9.0.102 [C:\Program Files\dotnet\sdk]
9.0.103 [C:\Program Files\dotnet\sdk]
Other information
No response
The text was updated successfully, but these errors were encountered: