diff --git a/src/libraries/Common/src/SourceGenerators/TypeRef.cs b/src/libraries/Common/src/SourceGenerators/TypeRef.cs
index cfbf33ed741366..a4d556ef786dbe 100644
--- a/src/libraries/Common/src/SourceGenerators/TypeRef.cs
+++ b/src/libraries/Common/src/SourceGenerators/TypeRef.cs
@@ -19,7 +19,7 @@ public TypeRef(ITypeSymbol type)
FullyQualifiedName = type.GetFullyQualifiedName();
IsValueType = type.IsValueType;
TypeKind = type.TypeKind;
- SpecialType = type.SpecialType;
+ SpecialType = type.OriginalDefinition.SpecialType;
}
public string Name { get; }
diff --git a/src/libraries/System.Text.Json/src/System.Text.Json.csproj b/src/libraries/System.Text.Json/src/System.Text.Json.csproj
index 3e867457e45ba6..29409f7f886293 100644
--- a/src/libraries/System.Text.Json/src/System.Text.Json.csproj
+++ b/src/libraries/System.Text.Json/src/System.Text.Json.csproj
@@ -9,7 +9,7 @@
truetruetrue
- 1
+ 2Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.
The System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.
diff --git a/src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs b/src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs
index 79a6ce599ad83c..44c702025f5d1e 100644
--- a/src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs
+++ b/src/libraries/System.Text.Json/tests/Common/PropertyVisibilityTests.cs
@@ -1322,10 +1322,6 @@ public async Task JsonIgnoreAttribute()
}
[Fact]
-#if BUILDING_SOURCE_GENERATOR_TESTS
- // Needs support for more collections.
- [ActiveIssue("https://github.com/dotnet/runtime/issues/53393")]
-#endif
public async Task JsonIgnoreAttribute_UnsupportedCollection()
{
string json =
@@ -1771,10 +1767,6 @@ public async Task OverrideJsonIgnorePropertyUsingJsonPropertyNameReversed()
[Theory]
[InlineData(typeof(ClassWithProperty_IgnoreConditionAlways))]
[InlineData(typeof(ClassWithProperty_IgnoreConditionAlways_Ctor))]
-#if BUILDING_SOURCE_GENERATOR_TESTS
- // Need support for parameterized ctors.
- [ActiveIssue("https://github.com/dotnet/runtime/issues/45448")]
-#endif
public async Task JsonIgnoreConditionSetToAlwaysWorks(Type type)
{
string json = @"{""MyString"":""Random"",""MyDateTime"":""2020-03-23"",""MyInt"":4}";
@@ -1798,7 +1790,7 @@ public class ClassWithProperty_IgnoreConditionAlways
public int MyInt { get; set; }
}
- private class ClassWithProperty_IgnoreConditionAlways_Ctor
+ public class ClassWithProperty_IgnoreConditionAlways_Ctor
{
public string MyString { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
@@ -1814,10 +1806,6 @@ public ClassWithProperty_IgnoreConditionAlways_Ctor(DateTime myDateTime, int myI
[Theory]
[MemberData(nameof(JsonIgnoreConditionWhenWritingDefault_ClassProperty_TestData))]
-#if BUILDING_SOURCE_GENERATOR_TESTS
- // Need support for parameterized ctors.
- [ActiveIssue("https://github.com/dotnet/runtime/issues/45448")]
-#endif
public async Task JsonIgnoreConditionWhenWritingDefault_ClassProperty(Type type, JsonSerializerOptions options)
{
// Property shouldn't be ignored if it isn't null.
@@ -1868,7 +1856,7 @@ public class ClassWithClassProperty_IgnoreConditionWhenWritingDefault
public int Int2 { get; set; }
}
- private class ClassWithClassProperty_IgnoreConditionWhenWritingDefault_Ctor
+ public class ClassWithClassProperty_IgnoreConditionWhenWritingDefault_Ctor
{
public int Int1 { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
@@ -1892,10 +1880,6 @@ public static IEnumerable