Skip to content

Commit

Permalink
Reduce number of times VSO commands are issued
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster authored and Nate McMaster committed Feb 5, 2019
1 parent f93ef9f commit 7272f72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project InitialTargets="UpdateCiSettings">
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true'">
<Project>
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(OS)' == 'Windows_NT' AND '$(IsPackable)' == 'true'">
<Message Importance="High" Text="##vso[build.updatebuildnumber]$(PackageVersion)" />
<!-- These tags can be used in Azure release pipelines to filter actions based on the type of build. -->
<Message Importance="high" Text="##vso[build.addbuildtag]daily-build" Condition=" '$(IsStableBuild)' != 'true' AND '$(BUILD_REASON)' != 'PullRequest' " />
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if ($CodeSign) {
$artifacts = "$PSScriptRoot/artifacts/"

Remove-Item -Recurse $artifacts -ErrorAction Ignore

exec dotnet msbuild /t:UpdateCiSettings @MSBuildArgs
exec dotnet build --configuration $Configuration '-warnaserror:CS1591' @MSBuildArgs
exec dotnet pack --no-restore --no-build --configuration $Configuration -o $artifacts @MSBuildArgs

Expand Down

0 comments on commit 7272f72

Please sign in to comment.