diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 15a4026a..7e340a27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,6 +66,7 @@ jobs: # faux-ternary expression to select which platforms to build for each platform vs. duplicating step below. TARGET_PLATFORMS: ${{ matrix.platform != 'WinUI3' && 'all' || 'all-uwp' }} TEST_PLATFORM: ${{ matrix.platform != 'WinUI3' && 'UWP' || 'WinAppSdk' }} + VERSION_PROPERTY: ${{ github.ref == 'refs/heads/main' && format('-p:PreviewVersion=build.{0}', github.run_number) || format('-p:PreviewVersion=pull-{0}.{1}', github.event.number, github.run_number) }} # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -124,12 +125,12 @@ jobs: if: ${{ matrix.platform == 'WinUI3' }} - name: MSBuild - run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m ${{ github.ref == 'refs/heads/main' && '' || format('-p:PreviewVersion="pull-{0}+build.{1}"', github.event.number, github.run_number) }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} -v:${{ env.MSBUILD_VERBOSITY }} + run: msbuild.exe CommunityToolkit.AllComponents.sln /restore /nowarn:MSB4011 -p:Configuration=Release -m ${{ env.VERSION_PROPERTY }} ${{ env.ENABLE_DIAGNOSTICS == 'true' && '/bl' || '' }} -v:${{ env.MSBUILD_VERBOSITY }} # Build All Packages - name: pack experiments working-directory: ./tooling/Scripts/ - run: ./PackEachExperiment.ps1 all + run: ./PackEachExperiment.ps1 -extraBuildProperties "${{ env.VERSION_PROPERTY }}" # Push Packages to our DevOps Artifacts Feed (see nuget.config) - name: Add source (main) diff --git a/Directory.Build.props b/Directory.Build.props index e262c054..43b79255 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ 8 0 - preview + preview CommunityToolkit $([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)')) diff --git a/tooling b/tooling index 9f18b055..0a36c629 160000 --- a/tooling +++ b/tooling @@ -1 +1 @@ -Subproject commit 9f18b055af7e42284196eac35b66cfa0021d033f +Subproject commit 0a36c629af1c4846761be6c299b4bf73ade9e05d