feat: use TALXIS.Platform.Metadata.Packaging library for solution pack/unpack#43
Merged
TomProkop merged 2 commits intoJun 12, 2026
Merged
Conversation
…k/unpack On .NET 10+ (MSBuildRuntimeType=Core), InvokeSolutionPackager now uses the TALXIS.Platform.Metadata.Packaging library directly instead of shelling out to PAC CLI. This eliminates the PAC CLI runtime dependency and provides faster, more reliable solution packing/unpacking. On .NET Framework (net472), the PAC CLI fallback is retained since the packaging library targets net10.0. Also upgrades Tasks TFM from net472;net6.0 to net472;net10.0 and updates the .targets assembly path accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
26bd980 to
477ca69
Compare
There was a problem hiding this comment.
Pull request overview
Refreshes the Dataverse MSBuild task InvokeSolutionPackager to use the published TALXIS.Platform.Metadata.Packaging library (via SolutionPackagerService) instead of directly wiring SolutionPackagerLib from Microsoft.PowerApps.CLI.Core.
Changes:
- Replace direct
SolutionPackagerLibusage withTALXIS.Platform.Metadata.Packaging.SolutionPackagerServicefor pack/unpack. - Add
TALXIS.Platform.Metadata.Packaging0.7.0dependency and remove theMicrosoft.PowerApps.CLI.Core.linux-x64reference/hint-path assembly wiring. - Keep the existing MSBuild task surface and continue to log stack traces on failure.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Dataverse/Tasks/Tasks/InvokeSolutionPackager.cs | Switches pack/unpack implementation to SolutionPackagerService and maps MSBuild task properties into SolutionPackagerOptions. |
| src/Dataverse/Tasks/TALXIS.DevKit.Build.Dataverse.Tasks.csproj | Replaces explicit CLI DLL wiring with a package dependency on TALXIS.Platform.Metadata.Packaging 0.7.0. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Normalize optional SolutionPackager paths to null/omitted values and only opt into unpack-specific delete/write flags when running unpack so the MSBuild task continues to mirror the previous argument semantics. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Summary
Refreshes
InvokeSolutionPackagerto use the published TALXIS.Platform.Metadata.Packaging package instead of the direct in-projectSolutionPackagerLibintegration introduced by the net10 host migration.Baseline / context
TALXIS/platform-metadatav0.7.0is published and providesTALXIS.Platform.Metadata.Packaging0.7.0tools-devkit-buildPR feat: upgrade Dataverse tasks to net10 host #65 already moved the Dataverse tasks host to .NET 10 / MSBuild 18+net472fallback design is no longer the target architecture for this PRChanges
TALXIS.Platform.Metadata.Packaging0.7.0toTALXIS.DevKit.Build.Dataverse.Tasks.csprojMicrosoft.PowerApps.CLI.Core.linux-x64/SolutionPackagerLibassembly wiring from the tasks projectInvokeSolutionPackagerto delegate pack/unpack toTALXIS.Platform.Metadata.Packaging.SolutionPackagerServiceActionPackageTypeSolutionRootDirectoryPathToZipFileErrorLevelLogFilePathMappingFilePathLocalizeLocalTemplateUseUnmanagedFileForMissingManagedValidation
dotnet build TALXIS.DevKit.Build.slnx -c Releasedotnet build src/Dataverse/Tasks/TALXIS.DevKit.Build.Dataverse.Tasks.csproj -c Releasedotnet pack src/Dataverse/Tasks/TALXIS.DevKit.Build.Dataverse.Tasks.csproj -c Release.nupkgcontain the required packaging runtime DLLs:TALXIS.Platform.Metadata.Packaging.dllSolutionPackagerLib.dllSystem.IO.Packaging.dlltasks/net10.0/Related
TALXIS/platform-metadatav0.7.0TALXIS/tools-cliPR refactor: unify assembly merge under AssemblyMerge* naming + PdPackage shared engine #80 (merged)