<StrongNameKeyId>Open</StrongNameKeyId>
<IsNETCoreApp>true</IsNETCoreApp>
<IsUAP>true</IsUAP>
+
+ <!-- Properties for source package -->
+ <_sourcePackageName>Microsoft.Bcl.Json.Sources</_sourcePackageName>
+ <_packagePathToSources>contentFiles/cs/netstandard2.0/$(_sourcePackageName)</_packagePathToSources>
</PropertyGroup>
</Project>
<PropertyGroup>
<!-- We need to make sure that all of the surface area on the sources gets rewritten as internal. -->
<GenerateInternalTypesSource>true</GenerateInternalTypesSource>
+ <!-- We need to disable package file check as the sdk targets will flag README.md file as it is not a known extension. -->
+ <SkipPackageFileCheck>true</SkipPackageFileCheck>
</PropertyGroup>
<!-- Given that System.Text.Json has Resources, we need to make sure we include them (and the SR.cs from Common)
<Target Name="GetSourcesToPackage" Returns="@(_sourceToPackage)" DependsOnTargets="Compile">
<PropertyGroup>
+ <_sourcePackageName>Microsoft.Bcl.Json.Sources</_sourcePackageName>
<_sourcePackageTargetLines><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<Project>
<ItemGroup Condition="'%24(ExcludeEmbeddedResourceFromPackage)' != 'true'">@(EmbeddedResource->'
- <EmbeddedResource Include="%24(MSBuildThisFileDirectory)%(FileName)%(Extension)" Link="System/Text/Json/%(FileName)%(Extension)" ManifestResourceName="%(ManifestResourceName)" />', '')
+ <EmbeddedResource Include="%24(MSBuildThisFileDirectory)%(FileName)%(Extension)" Link="$(_sourcePackageName)/%(FileName)%(Extension)" ManifestResourceName="%(ManifestResourceName)" />', '')
+ </ItemGroup>
+
+ <ItemGroup>
+ <None Include="%24(MSBuildThisFileDirectory)README.md" Link="$(_sourcePackageName)/README.md" Visible="true" />
</ItemGroup>
</Project>]]>
</_sourcePackageTargetLines>
- <_targetsFileName>Microsoft.Bcl.Json.Sources.targets</_targetsFileName>
+ <_targetsFileName>$(_sourcePackageName).targets</_targetsFileName>
<_generatedSourcePackageTargetPath>$(IntermediateOutputPath)/$(_targetsFileName)</_generatedSourcePackageTargetPath>
</PropertyGroup>
<ItemGroup>
<_sourceToExclude Include="@(Compile)" Condition="$([System.String]::Copy('%(Compile.Identity)').ToLower().EndsWith('assemblyinfo.cs'))" />
- <_sourceToPackage Include="@(Compile->'%(FullPath)')" PackagePath="contentFiles/cs/netstandard2.0/System/Text/Json/%(FileName)%(Extension)" Exclude="@(_sourceToExclude)"/>
+ <_sourceToPackage Include="@(Compile->'%(FullPath)')" PackagePath="contentFiles/cs/netstandard2.0/$(_sourcePackageName)/%(FileName)%(Extension)" Exclude="@(_sourceToExclude)"/>
<_sourceToPackage Condition="'%(Extension)' == '.resx'" Include="@(EmbeddedResource->'%(FullPath)')" PackagePath="build/netstandard2.0/%(FileName)%(Extension)" />
<_sourceToPackage Include="$(_generatedSourcePackageTargetPath)" PackagePath="build/netstandard2.0/$(_targetsFileName)" />
+ <_sourceToPackage Include="$(MSBuildThisFileDirectory)../source_package/README.md" PackagePath="build/netstandard2.0/README.md" />
</ItemGroup>
</Target>
</Project>
"Description": "Provides the source code implementation of System.Text.Json as internal types. This package is only required for projects targeting .NET Framework 4.6.1+ or .NET Core 2.x; and is not for projects that can target .NET Core 3.0 and higher. For guidance on consuming the source pacakge, visit: https://aka.ms/json-source-package-guide.",
"CommonTypes": [
"System.Text.Json.Utf8JsonReader",
- "System.Text.Json.Utf8JsonWriter"
+ "System.Text.Json.Utf8JsonWriter",
+ "System.Text.Json.JsonDocument"
]
},
{