Skip to content

Serialization and Deserialization in C#: move SerializationDemo to .NET 11 - #2405

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67045-serialization-deserialization-csharp
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67045-serialization-deserialization-csharp

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves aspnetcore-webapi/SerializationDemo to net11.0. The shared models reference protobuf-net 3.4.40 directly, the API keeps WebApiContrib.Core.Formatter.Protobuf 3.0.0 and replaces Swashbuckle with Microsoft.AspNetCore.OpenApi 11.0.0, and the cache client no longer serializes the JSON response twice (it threw a JsonException). The serializers return nullable results, the console client awaits instead of blocking on .Result, and the test project runs on MSTest 4.5.3 only: the four NUnit tests are converted, the JSON byte test now covers JsonByteSerializer, and a new test reads a Protobuf GET back into five employees (12 tests). The unused Microsoft.AspNetCore.Http 2.2.2 reference and the vulnerable package versions are gone.

…amework

Retarget all four projects to net11.0. Common references protobuf-net 3.4.40 directly; the
API references WebApiContrib.Core.Formatter.Protobuf 3.0.0 and Microsoft.AspNetCore.OpenApi
11.0.0 in place of Swashbuckle. CachedJsonClient.RefreshCache no longer serializes the JSON
response a second time. Serializers return T?, the client awaits instead of .Result, and the
tests run on MSTest 4.5.3 only (the four NUnit tests are converted, the JSON byte test now
tests JsonByteSerializer, a Protobuf GET test is added; 12 tests).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant