Skip to content

Commit

Permalink
Making ConvertPortablePdbsToWindowsPdbs settable (#8096)
Browse files Browse the repository at this point in the history
* Making ConvertPortablePdbsToWindowsPdbs settable

* added comments
  • Loading branch information
epananth committed Oct 26, 2021
1 parent 42bafbb commit e3141f8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
- InternalInstallersTargetStaticFeedKey
- InternalChecksumsTargetStaticFeed
- InternalChecksumsTargetStaticFeedKey
NOTE: For symbol publishing using V3, ConvertPortablePdbsToWindowsPdbs is always set to false, because this is an expensive task so this is done in the staging pipeline post signing.
-->

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<PackagesToPublishToSymbolServer Remove="$(BlobBasePath)\Microsoft.DotNet.Maestro.Tasks.*" />
</ItemGroup>

<!--
ConvertPortablePdbsToWindowsPdbs is set to true only in staging pipeline, because this is an expensive task and we don't want to do it for every build.
-->
<PropertyGroup>
<DotNetSymbolExpirationInDays Condition="'$(DotNetSymbolExpirationInDays)' == ''">3650</DotNetSymbolExpirationInDays>
<PublishToSymbolServer>true</PublishToSymbolServer>
Expand All @@ -45,6 +48,7 @@
<PublishToSymbolServer Condition="'@(FilesToPublishToSymbolServer)' == '' and '@(PackagesToPublishToSymbolServer)' == ''">false</PublishToSymbolServer>
<PublishSpecialClrFiles Condition="'$(PublishSpecialClrFiles)' == ''">true</PublishSpecialClrFiles>
<DryRun Condition="'$(DryRun)' == ''">false</DryRun>
<ConvertPortablePdbsToWindowsPdbs Condition="'$(ConvertPortablePdbsToWindowsPdbs)' == ''">false</ConvertPortablePdbsToWindowsPdbs>
</PropertyGroup>

<Message
Expand Down Expand Up @@ -98,7 +102,7 @@
ExpirationInDays="$(DotNetSymbolExpirationInDays)"
VerboseLogging="true"
DryRun="$(DryRun)"
ConvertPortablePdbsToWindowsPdbs="false"
ConvertPortablePdbsToWindowsPdbs="$(ConvertPortablePdbsToWindowsPdbs)"
PdbConversionTreatAsWarning=""
PublishSpecialClrFiles="$(PublishSpecialClrFiles)"
Condition="$(PublishToSymbolServer)"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ await DownloadFileAsync(
try
{
// ConvertPortablePdbsToWindowsPdbs is always set to false,
// because this is an expensive task so this is done in the staging pipeline post signing.
await PublishSymbolsHelper.PublishAsync(
Log,
serverPath,
Expand Down Expand Up @@ -560,6 +562,8 @@ await PublishSymbolsHelper.PublishAsync(

try
{
// ConvertPortablePdbsToWindowsPdbs is always set to false,
// because this is an expensive task so this is done in the staging pipeline post signing.
await PublishSymbolsHelper.PublishAsync(
Log,
serverPath,
Expand Down Expand Up @@ -686,6 +690,8 @@ public async Task PublishSymbolsfromBlobArtifactsAsync(

try
{
// ConvertPortablePdbsToWindowsPdbs is always set to false,
// because this is an expensive task so this is done in the staging pipeline post signing.
await PublishSymbolsHelper.PublishAsync(
Log,
serverPath,
Expand Down

0 comments on commit e3141f8

Please sign in to comment.