forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generating Source package for System.Text.Json (dotnet/corefx#34552)
* Generating Source package for System.Text.Json * Changing the placeholder file to be in netcoreapp3.0 instead * Renaming package * Updating arcade to get new SourceRewriter package * Fix package location of resource files * Adding .resx file to the package and addressing PR Feedback * Adding description and fixing issue with spacing * Automatically generate targets file that goes in the package Commit migrated from dotnet/corefx@09b8b4b
- Loading branch information
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/libraries/System.Text.Json/pkg/Microsoft.Bcl.Json.Sources.pkgproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" /> | ||
<UsingTask TaskName="GenerateSourceWithPublicTypesAsInternal" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll" /> | ||
|
||
<PropertyGroup> | ||
<!-- We need to make sure that all of the surface area on the sources gets rewritten as internal. --> | ||
<GenerateInternalTypesSource>true</GenerateInternalTypesSource> | ||
</PropertyGroup> | ||
|
||
<!-- Given that System.Text.Json has Resources, we need to make sure we include them (and the SR.cs from Common) | ||
on the sources of the package. This target will retrieve the compiled resources file and will also add | ||
the Common SR.cs into SourcePackageFiles. --> | ||
<Target Name="GetSourcesToPackage" BeforeTargets="ExpandProjectReferences"> | ||
<ItemGroup> | ||
<_ProjectsToBuild Include="../src/System.Text.Json.csproj" UndefineProperties="Configuration" /> | ||
</ItemGroup> | ||
|
||
<MSBuild Projects="@(_ProjectsToBuild)" | ||
Targets="GetSourcesToPackage"> | ||
<Output TaskParameter="TargetOutputs" | ||
ItemName="SourcePackageFiles" /> | ||
</MSBuild> | ||
</Target> | ||
|
||
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters