Skip to content

Commit 89a2166

Browse files
dougburynowak
authored andcommitted
Ensure PDBArtifacts artifact is created
- dotnet/aspnetcore-internal#3535 - avoid build warnings when publishing symbols in post-build
1 parent 64a7f37 commit 89a2166

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

eng/Publishing.props

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
<!-- Include our "loose" PDBs when publishing symbols. -->
1414
<FilesToPublishToSymbolServer Include="$(ArtifactsDir)\symbols\**\*.pdb" />
1515

16-
<!-- Prepare for _PublishInstallersAndChecksums target. -->
16+
<!-- Ensure the PDBArtifacts artifact isn't empty, avoiding irrelevant build warnings. -->
17+
<FilesToPublishToSymbolServer Include="$(RepoRoot)\README.md"
18+
Condition=" @(FilesToPublishToSymbolServer) == '' " />
19+
20+
<!-- Prepare for _PublishInstallers target. -->
1721
<_InstallersToPublish Remove="@(_InstallersToPublish)" />
1822
<_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.jar" UploadPathSegment="jar" />
1923
<_InstallersToPublish Include="$(ArtifactsDir)\packages\**\*.pom" UploadPathSegment="jar" />
@@ -31,7 +35,7 @@
3135
</ItemGroup>
3236

3337
<Target Name="_PublishInstallersAndChecksums">
34-
<!--
38+
<!--
3539
This target is defined in eng/targets/Packaging.targets and included in every C# and F# project.
3640
We use Microsoft.AspNetCore.DeveloperCertificates.XPlat because it is a nonshipping package, and we need a non-stable version string to use as our publish location.
3741
-->

0 commit comments

Comments
 (0)