Skip to content

Conversation

@eiriktsarpalis
Copy link
Member

@eiriktsarpalis eiriktsarpalis commented Jun 23, 2023

This PR:

It should be noted that the minimum supported language version for STJ is C# 9. This is because a number of "JsonMetadataServices" models use init-only properties.

@ghost
Copy link

ghost commented Jun 23, 2023

Tagging subscribers to this area: @dotnet/area-system-text-json, @gregsdennis
See info in area-owners.md if you want to be subscribed.

Issue Details

This PR:

It should be noted that the minimum supported language version for STJ is C# 9. This is because a number of "JsonMetadataServices" models use init-only properties.

Author: eiriktsarpalis
Assignees: -
Labels:

area-System.Text.Json

Milestone: -

@eiriktsarpalis eiriktsarpalis added this to the 8.0.0 milestone Jun 23, 2023
using System;
using System.Text.Json.Serialization;
[assembly: JsonSerializable(typeof(int))]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (and a number of other unit tests) are calling early source gen APIs that were eventually removed before the SG was shipped.

using System.Collections.Generic;
using System.Text.Json.Serialization;
[assembly: JsonSerializable(typeof(Fake.Location))]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing test using a deprecated activation gesture that no longer compiles succesfully.

@eiriktsarpalis eiriktsarpalis requested a review from tarekgh June 23, 2023 14:28
@eiriktsarpalis eiriktsarpalis merged commit 478130b into dotnet:main Jun 23, 2023
@eiriktsarpalis eiriktsarpalis deleted the stj/check-lang-version branch June 23, 2023 18:19
@ghost ghost locked as resolved and limited conversation to collaborators Jul 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Json source generator generates uncompilable code for new .NET Framework project

3 participants