Reduce Tool package size and update .NET target to net10.0#33
Merged
Conversation
added 2 commits
July 12, 2026 22:05
- Target net10.0 only for the Tool project (Core/Language/Stdlib remain net8.0;net9.0;net10.0); .NET 9 is STS and already out of support, and triple-targeting tripled every native SkiaSharp asset in the package. - Add TrimPublishedNativeAssets MSBuild target (AfterTargets= ComputeResolvedFilesToPublishList) that strips transitive native SkiaSharp .pdb debug symbols and non-curated RID directories from the published/packed output. - Remove the now-dead-weight OS-conditioned SkiaSharp.NativeAssets.* PackageReferences (the full RID matrix already arrives unconditionally via DemaConsulting.Rendering.Skia's own SkiaSharp dependency) and pin to a curated RID allowlist: win-x64/x86/arm64, linux-x64/arm64, linux-musl-x64/arm64, osx. - Update Tool.Tests.csproj to net10.0-only to match the ProjectReference. - Narrow build.yaml's integration-test job matrix to 10.x only. - Update requirements/design/verification docs and README to reflect the net10.0-only Tool platform.
This was referenced Jul 13, 2026
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.
This pull request removes .NET 8 and .NET 9 support from the
DemaConsulting.SysML2Tools.ToolCLI tool, making .NET 10 the sole target framework. The library packages remain multi-targeted. The PR also implements a curated native asset trimming system for SkiaSharp, significantly reducing the tool package size to meet NuGet.org limits. Documentation, requirements, and test configurations have been updated to reflect these changes.Tool packaging and native asset trimming:
Toolproject now targets onlynet10.0instead ofnet8.0;net9.0;net10.0, reducing duplication and aligning with supported LTS versions.TrimPublishedNativeAssets) that removes unnecessary native SkiaSharp debug symbols and unsupported runtime assets, dramatically reducing the.nupkgsize. [1] [2]CI/CD and test matrix updates:
build.yaml) and test project now only build and test against .NET 10, removing .NET 8 and .NET 9 from the matrix. [1] [2]Documentation and requirements alignment:
Roadmap and rationale:
ROADMAP.mddescribing the package size issue, the causes, and the implemented solutions, including the rationale for dropping .NET 8 and 9 for the tool.