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)"