Fix Json Source package not includding ArrayBufferWriter (dotnet/corefx#37009)
authorJose Perez Rodriguez <joperezr@microsoft.com>
Thu, 18 Apr 2019 23:21:48 +0000 (16:21 -0700)
committerAhson Khan <ahkha@microsoft.com>
Thu, 18 Apr 2019 23:21:48 +0000 (16:21 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/c1b0a40964253b1bc48dd3be734eb2e1cf716db3

src/libraries/System.Text.Json/pkg/Microsoft.Bcl.Json.Sources.pkgproj

index 40d70c6..7728cd6 100644 (file)
        the Common SR.cs into SourcePackageFiles. -->
   <Target Name="GetSourcesToPackage" BeforeTargets="ExpandProjectReferences">
     <ItemGroup>
-      <_ProjectsToBuild Include="../src/System.Text.Json.csproj" UndefineProperties="Configuration" AdditionalProperties="TargetGroup=netstandard"/>
+      <!-- Ensure that we undefine BuildConfiguration and set it to netstandard for getting the right sources to package. -->
+      <_ProjectsToBuild Include="../src/System.Text.Json.csproj" 
+                        UndefineProperties="Configuration;BuildConfiguration" 
+                        AdditionalProperties="TargetGroup=netstandard;BuildConfiguration=netstandard" />
     </ItemGroup>
 
     <MSBuild Projects="@(_ProjectsToBuild)"