Port logic from 5.0 to clean binaries from tarball (#11955)

This commit is contained in:
Dan Seefeldt 2021-09-10 17:21:07 -05:00 committed by GitHub
parent 57ff07fdc1
commit 1ee668a856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

View file

@ -19,6 +19,7 @@
CreateTarballDir;
SetupSelfGithubInfo;
CloneRepoAndDependentsRecursive;
CleanClonedSource;
CopyTarballContent;
">
@ -196,6 +197,28 @@
</Target>
<Target Name="CleanClonedSource">
<ItemGroup>
<TarballSrcBinaryExtension Include="
.dll;
.Dll;
.exe;
.pdb;
.mdb;
.zip;
.nupkg" />
<TarballSrcBinaryToRemove Include="$(TarballSourceDir)**\*%(TarballSrcBinaryExtension.Identity)" />
<!-- Runtime coreclr and installer parts have empty placeholder PDB files. Keep them. -->
<TarballSrcBinaryToRemove Remove="
$(TarballSourceDir)runtime*\src\coreclr\.nuget\**\*%(TarballSrcBinaryExtension.Identity);
$(TarballSourceDir)runtime*\src\installer\pkg\**\*%(TarballSrcBinaryExtension.Identity)" />
</ItemGroup>
<Delete Files="@(TarballSrcBinaryToRemove)" />
</Target>
<Target Name="CopyTarballContent">
<ItemGroup>
<TarballContent Include="$(RepoRoot)src/SourceBuild/tarball/content/**/*" />

View file

@ -0,0 +1,31 @@
From 1cb584fab0d95a87418b884856c12ccc55ea0a95 Mon Sep 17 00:00:00 2001
From: dseefeld <dseefeld@microsoft.com>
Date: Fri, 10 Sep 2021 13:47:05 +0000
Subject: [PATCH] Exclude PdbTest project from source-build
---
src/PdbTestResources/PdbTestResources.csproj | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PdbTestResources/PdbTestResources.csproj b/src/PdbTestResources/PdbTestResources.csproj
index 1376ddf..21f45b3 100644
--- a/src/PdbTestResources/PdbTestResources.csproj
+++ b/src/PdbTestResources/PdbTestResources.csproj
@@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard1.3</TargetFramework>
<IsShipping>false</IsShipping>
+ <ExcludeFromSourceBuild>true</ExcludeFromSourceBuild>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Resources\**\*.cs" />
@@ -18,4 +19,4 @@
<LogicalName>SourceLink.pdb</LogicalName>
</EmbeddedResource>
</ItemGroup>
-</Project>
\ No newline at end of file
+</Project>
--
2.31.1