Skip to content

[sharpie] Add the sharpie nupkg version to 'make show-versions'.#24827

Merged
rolfbjarne merged 1 commit intomainfrom
dev/rolf/sharpie-show-versions
Mar 4, 2026
Merged

[sharpie] Add the sharpie nupkg version to 'make show-versions'.#24827
rolfbjarne merged 1 commit intomainfrom
dev/rolf/sharpie-show-versions

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

This required a few simplifications to the 'create-makefile-fragment.sh'
script to avoid trying to create a makefile fragment if we don't have .NET
downloaded yet, because 'make show-versions' should succeed without a
downloaded .NET.

This required a few simplifications to the 'create-makefile-fragment.sh'
script to avoid trying to create a makefile fragment if we don't have .NET
downloaded yet, because 'make show-versions' should succeed without a
downloaded .NET.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the Sharpie nupkg version to the output of make show-versions, ensuring it appears alongside the .NET NuGet version info when checking the build system. To make this work without a downloaded .NET (since make show-versions should succeed even on a fresh checkout), the create-makefile-fragment.sh script was simplified: it now exits silently if the dotnet executable doesn't yet exist on disk, rather than failing.

Changes:

  • make show-versions now also invokes make -C tools/sharpie show-version to display the Sharpie.Bind.Tool NuGet version.
  • create-makefile-fragment.sh was simplified to always hardcode BUILD_EXECUTABLE="$DOTNET build" and exit silently (exit 0) when the dotnet executable file is absent.
  • The now-redundant export BUILD_EXECUTABLE=$(DOTNET) build line was removed from tools/dotnet-linker/Makefile.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tools/sharpie/Makefile Adds the show-version phony-style target that echoes SHARPIE_BIND_TOOL_NUGET_VERSION.
Makefile Calls $(MAKE) -C tools/sharpie show-version as part of the show-versions target.
tools/common/create-makefile-fragment.sh Removes the BUILD_EXECUTABLE override mechanism; adds a graceful early-exit if the dotnet binary doesn't exist yet.
tools/dotnet-linker/Makefile Drops the now-unnecessary export BUILD_EXECUTABLE=$(DOTNET) build line.

You can also share your feedback on Copilot code review. Take the survey.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #cbb7e1a] Build passed (Build packages) ✅

Pipeline on Agent
Hash: cbb7e1a4083c34b6e5a601a6bcc6aa468c5a7050 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #cbb7e1a] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: cbb7e1a4083c34b6e5a601a6bcc6aa468c5a7050 [PR build]

@rolfbjarne rolfbjarne enabled auto-merge (squash) March 4, 2026 12:49
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: cbb7e1a4083c34b6e5a601a6bcc6aa468c5a7050 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #cbb7e1a] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: cbb7e1a4083c34b6e5a601a6bcc6aa468c5a7050 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🚀 [CI Build #cbb7e1a] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 156 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: cbb7e1a4083c34b6e5a601a6bcc6aa468c5a7050 [PR build]

@rolfbjarne rolfbjarne merged commit 9cf7f59 into main Mar 4, 2026
51 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants