Skip to content

Commit 7272f72

Browse files
natemcmasterNate McMaster
authored andcommitted
Reduce number of times VSO commands are issued
1 parent f93ef9f commit 7272f72

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Directory.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<Project InitialTargets="UpdateCiSettings">
2-
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true'">
1+
<Project>
2+
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(OS)' == 'Windows_NT' AND '$(IsPackable)' == 'true'">
33
<Message Importance="High" Text="##vso[build.updatebuildnumber]$(PackageVersion)" />
44
<!-- These tags can be used in Azure release pipelines to filter actions based on the type of build. -->
55
<Message Importance="high" Text="##vso[build.addbuildtag]daily-build" Condition=" '$(IsStableBuild)' != 'true' AND '$(BUILD_REASON)' != 'PullRequest' " />

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ if ($CodeSign) {
6969
$artifacts = "$PSScriptRoot/artifacts/"
7070

7171
Remove-Item -Recurse $artifacts -ErrorAction Ignore
72-
72+
exec dotnet msbuild /t:UpdateCiSettings @MSBuildArgs
7373
exec dotnet build --configuration $Configuration '-warnaserror:CS1591' @MSBuildArgs
7474
exec dotnet pack --no-restore --no-build --configuration $Configuration -o $artifacts @MSBuildArgs
7575

0 commit comments

Comments
 (0)