Repository navigation
build: pack published libraries from source with shared package metadata - #265
Merged
Merged
Conversation
- Directory.Build.props holds the NuGet metadata only the Builder passed before (authors, license, icon, project URL, repository type) and makes projects opt in to packing with <IsPackable>true</IsPackable> - The 27 published projects opt in (adds MTConnect.NET-AgentModule-WebUI, which was missing from the Builder's package list); the icon is included once from Directory.Build.props instead of in each project - Map the solution's Package configuration to Package for AdapterModule-MQTT, AdapterModule-SHDR, AgentModule-MqttRelay and SysML (they built Debug, net8.0 only, and failed the pack with NU5128) - CI release-pack packs with -c Package and checks the package count - Add a Dockerfile that builds the Agent image from source - Builder template: list WebUI and use https://www.TrakHound.com `dotnet pack MTConnect.NET.sln -c Package` now produces the same packages as `libraries nuget build` (identical file lists; the nuspecs differ only in the added projectUrl). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares the repository for building releases from the private MTConnect.NET.Builder. The package metadata and the list of packable projects now live here, so anyone can pack the libraries or build the Agent image from source.
Changes
Directory.Build.propssetsIsPackable=falseand the shared NuGet metadata (Authors,PackageProjectUrlhttps://www.TrakHound.com, MIT license, icon, repository type). Each of the 27 published projects setsIsPackable=trueand no longer includes the icon itself.Packageconfiguration. AdapterModule-MQTT, AdapterModule-SHDR, AgentModule-MqttRelay and MTConnect.NET-SysML mappedPackage|Any CPUto Debug, which packed net8.0 only (NU5128). They now map to Package.release-packrunsdotnet pack MTConnect.NET.sln -c Packageand fails unless it produces exactlyEXPECTED_PACKAGES(27) packages.Dockerfile/.dockerignorebuild the Agent image from source (SDK 10.0 build stage, runtime 8.0 image, non-root, health check on port 5000).docs/development/builder.mdare updated to match.Testing
.nupkg+ 27.snupkg. Compared with the previous Builder output, the file lists match and the only nuspec difference is the addedprojectUrl./probereturns 200.format,docs-prepareandbuild-and-testjobs already fail onmasterfor unrelated reasons.🤖 Generated with Claude Code