Skip to content

[sharpie] Set a few required properties for the nupkg.#24813

Merged
dalexsoto merged 1 commit intomainfrom
dev/rolf/sharpie-nupkg-props
Mar 3, 2026
Merged

[sharpie] Set a few required properties for the nupkg.#24813
dalexsoto merged 1 commit intomainfrom
dev/rolf/sharpie-nupkg-props

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

No description provided.

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

Updates the Sharpie .NET tool NuGet package metadata so the produced nupkg includes standard repository and branding information (repo URL/commit/branch, icon, authors/owners).

Changes:

  • Add NuGet package metadata properties (repo info, authors/owners/copyright, icon, project URL) to Sharpie.Bind.Tool.csproj.
  • Include Icon.png in the packed output so PackageIcon is valid.
  • Pass CurrentBranch/CurrentHash into dotnet pack from the Sharpie make target; also emit branch/hash values into generated Build.props.

Reviewed changes

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

File Description
tools/sharpie/Sharpie.Bind.Tool/Sharpie.Bind.Tool.csproj Adds package metadata (repo info, authors/owners, icon/project URL) and packs the icon file.
tools/sharpie/Makefile Passes branch/hash MSBuild properties to dotnet pack so repository metadata can be populated.
Make.config Writes branch/hash values into generated Build.props for MSBuild consumption.
Comments suppressed due to low confidence (1)

Make.config:368

  • Make.config now writes MSBuild properties named CURRENT_BRANCH and CURRENT_HASH_LONG into Build.props, but the repo’s packing projects (including Sharpie.Bind.Tool.csproj in this PR, and dotnet/package/common.csproj) use $(CurrentBranch) / $(CurrentHash) (different property names, not just casing). As-is, these new Build.props values won't flow into the nupkg metadata unless callers also pass /p:CurrentBranch and /p:CurrentHash, and the new properties appear unused by MSBuild.

Consider either (1) emitting <CurrentBranch> and <CurrentHash> in Build.props to match the established convention, or (2) removing these Build.props entries and relying solely on the explicit /p: values passed to dotnet pack for Sharpie.

	$(Q) printf "\t\t<CURRENT_BRANCH>$(CURRENT_BRANCH)</CURRENT_BRANCH>\n" >> $@.tmp
	$(Q) printf "\t\t<CURRENT_HASH_LONG>$(CURRENT_HASH_LONG)</CURRENT_HASH_LONG>\n" >> $@.tmp

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

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

Pipeline on Agent
Hash: de4674cf3296647136808af2b44cb53f8e543794 [PR build]

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

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

Pipeline on Agent
Hash: de4674cf3296647136808af2b44cb53f8e543794 [PR build]

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

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

Pipeline on Agent
Hash: de4674cf3296647136808af2b44cb53f8e543794 [PR build]

@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: de4674cf3296647136808af2b44cb53f8e543794 [PR build]

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

🚀 [CI Build #de4674c] 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. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. 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: de4674cf3296647136808af2b44cb53f8e543794 [PR build]

@dalexsoto dalexsoto merged commit f34a3fd into main Mar 3, 2026
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