-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Enable System.Text.Json tests on netfx #63803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c433d47
10334c9
a018cc1
fe627f5
ab3e971
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||||||||
| <Project> | ||||||||||||
| <PropertyGroup> | ||||||||||||
| <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkCurrent)</TargetFrameworks> | ||||||||||||
| <TargetFrameworks>$(NetCoreAppCurrent);$(NetFrameworkMinimum)</TargetFrameworks> | ||||||||||||
| <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||||||||||||
| <IncludeRemoteExecutor>true</IncludeRemoteExecutor> | ||||||||||||
| <!-- SYSLIB0020: JsonSerializerOptions.IgnoreNullValues is obsolete --> | ||||||||||||
|
|
@@ -86,6 +86,17 @@ | |||||||||||
| <Compile Include="TestClasses.CustomConverters.cs" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
|
|
||||||||||||
| <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> | ||||||||||||
| <ProjectReference Include="..\..\src\System.Text.Json.csproj" /> | ||||||||||||
| <ProjectReference Include="$(LibrariesProjectRoot)System.Collections.Immutable\src\System.Collections.Immutable.csproj" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
|
|
||||||||||||
| <ItemGroup Condition="'$(TargetFramework)' != '$(NetCoreAppCurrent)'"> | ||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these 3 files needed?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm getting following errors without it:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IsExternalInit is related to:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IsExternalInit case seems weird I don't have enough knowledge of this - possibly a compiler bug? (it should generate this class if it's not defined I think - assuming compiler emits that attribute)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc: @jaredpar
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I fixed consumption in .NETCore when a netstandard library derives from S.T.J types with This is a different scenario. This is a netfx library which itself is trying to use
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW we're doing the same in the regular reflection-based tests. runtime/src/libraries/System.Text.Json/tests/System.Text.Json.Tests/System.Text.Json.Tests.csproj Lines 202 to 206 in fe627f5
|
||||||||||||
| <Compile Include="$(CommonPath)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" /> | ||||||||||||
| <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicDependencyAttribute.cs" /> | ||||||||||||
| <Compile Include="$(CoreLibSharedDir)System\Diagnostics\CodeAnalysis\DynamicallyAccessedMemberTypes.cs" /> | ||||||||||||
| </ItemGroup> | ||||||||||||
|
|
||||||||||||
| <Target Name="FixIncrementalCoreCompileWithAnalyzers" BeforeTargets="CoreCompile"> | ||||||||||||
| <ItemGroup> | ||||||||||||
| <CustomAdditionalCompileInputs Include="@(Analyzer)" /> | ||||||||||||
|
|
||||||||||||
Uh oh!
There was an error while loading. Please reload this page.