diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index d7c6ef14..376a3445 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -25,8 +25,14 @@ jobs:
with:
dotnet-version: 6.0.x
- name: Build
- run: msbuild -t:restore,build /p:Configuration=Debug /p:Platform=x64
+ run: msbuild -t:restore,build /p:Configuration=Debug /p:Platform=x64 /bl
shell: cmd
+ - name: Upload MSBuild binary log
+ uses: actions/upload-artifact@v2
+ with:
+ name: msbuild_log
+ path: msbuild.binlog
+ if-no-files-found: error
# Build the whole ComputeSharp solution, in Release
build-solution-release:
diff --git a/Directory.Build.props b/Directory.Build.props
index 86d987a3..6b5b8f5d 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -19,13 +19,36 @@
-->
2.0.0
+ false
+
+
+ ^rel/(\d{1,4}\.\d{1,4}\.\d{1,4})(?:-(\w+(?:\.\w+)?))?$
+ $([System.Text.RegularExpressions.Regex]::IsMatch($(GITHUB_REF_NAME), $(ReleaseVersionParsingRegex)))
+
+
+
+
+ true
+ $([System.Text.RegularExpressions.Regex]::Match($(GITHUB_REF_NAME), $(ReleaseVersionParsingRegex)).Groups[1].Value)
+ $([System.Text.RegularExpressions.Regex]::Match($(GITHUB_REF_NAME), $(ReleaseVersionParsingRegex)).Groups[2].Value)
+ $(ComputeSharpPackageVersionFromReleaseBranch)
+ $(ComputeSharpPackageVersionSuffixFromReleaseBranch)
+
+
+
$(ComputeSharpPackageVersion).0
$(ComputeSharpPackageVersion)
- alpha
- pr
+ alpha
+ pr
+
+
+
true
https://github.com/Sergio0694/ComputeSharp/
git
diff --git a/Directory.Build.targets b/Directory.Build.targets
index f483ec4f..7ceecbc6 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -15,19 +15,19 @@
of dotnet build for some cases, due to the solution having some UWP and WinUI 3 projects, and non SDK-style too).
The lines setting the prefix have been omitted, as that is already handled in the root .props file.
-->
-
- $(VersionPrefix)-$(VersionSuffix)
- $(VersionPrefix)
+
+ $(VersionPrefix)-$(VersionSuffix)
+ $(VersionPrefix)
+
+
+
+
+ $(Version)
- $(Version).$(GITHUB_RUN_ID)
+ $(Version).$(GITHUB_RUN_ID)
$(PackageVersion)+$(GITHUB_SHA)
-
-
-
- $(Version)
-
\ No newline at end of file