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
In System In Text. Json, when I perform AOT publishing on the application, the error message is:
Method not found: 'Void System.' Text.Json.Serialization.Metadata.JsonObjectInfoValues1<WavesLauncher.Core.Models.LauncherIndex>.set_ConstructorAttributeProviderFactory(System.Func1<System.Reflection.ICustomAttributeProvider>)'.
My development environment is as follows: Visual Studio 2022 preview 17.13 net8.0-windows10.0.22621.0 C# preview WindowsAppSdk 1.6
In the application, I explicitly applied System Text. Json 9.0 Nuget package, I encountered an error while running the application after AOT. When I removed After System .Text. Json 9.0, it was found that everything was normal.
Has this problem already occurred? But I find this very strange, as if the version is incompatible, and there are no warning signs, which confuses me.
Reproduction Steps
Create one Net 8 program, and simply create a Json object and implement its JsonContext generator. Note that you need to manually reference System.Text.Json 9.0 package.
Afterwards, write a simple serialization and deserialization logic and publish the program in AOT format to generate errors
Expected behavior
He should execute any serialization and deserialization program logic normally
Actual behavior
Method not found: 'Void System.' Text.Json.Serialization.Metadata.JsonObjectInfoValues1<WavesLauncher.Core.Models.LauncherIndex>.set_ConstructorAttributeProviderFactory(System.Func1<System.Reflection.ICustomAttributeProvider>)'.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
Description
In System In Text. Json, when I perform AOT publishing on the application, the error message is:
Method not found: 'Void System.' Text.Json.Serialization.Metadata.JsonObjectInfoValues
1<WavesLauncher.Core.Models.LauncherIndex>.set_ConstructorAttributeProviderFactory(System.Func
1<System.Reflection.ICustomAttributeProvider>)'.My development environment is as follows:
Visual Studio 2022 preview 17.13
net8.0-windows10.0.22621.0
C# preview
WindowsAppSdk 1.6
In the application, I explicitly applied
System Text. Json 9.0
Nuget package, I encountered an error while running the application after AOT. When I removed AfterSystem .Text. Json 9.0
, it was found that everything was normal.Has this problem already occurred? But I find this very strange, as if the version is incompatible, and there are no warning signs, which confuses me.
Reproduction Steps
Create one Net 8 program, and simply create a Json object and implement its JsonContext generator. Note that you need to manually reference
System.Text.Json 9.0
package.Afterwards, write a simple serialization and deserialization logic and publish the program in AOT format to generate errors
Expected behavior
He should execute any serialization and deserialization program logic normally
Actual behavior
Method not found: 'Void System.' Text.Json.Serialization.Metadata.JsonObjectInfoValues
1<WavesLauncher.Core.Models.LauncherIndex>.set_ConstructorAttributeProviderFactory(System.Func
1<System.Reflection.ICustomAttributeProvider>)'.Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: