Skip to content

refactor: use TALXIS.Platform.Metadata.Packaging library for solution pack/unpack#80

Merged
TomProkop merged 1 commit into
masterfrom
feature/use-packaging-library
Jun 12, 2026
Merged

refactor: use TALXIS.Platform.Metadata.Packaging library for solution pack/unpack#80
TomProkop merged 1 commit into
masterfrom
feature/use-packaging-library

Conversation

@metjuperry

@metjuperry metjuperry commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

Switches tools-cli solution pack/unpack flows from the local inline SolutionPackagerLib wrapper to the published TALXIS.Platform.Metadata.Packaging package.

Depends on

  • TALXIS/platform-metadata v0.7.0 (published) — provides TALXIS.Platform.Metadata.Packaging 0.7.0

Changes

  • Removed the local ISolutionPackagerService contract from TALXIS.CLI.Core
  • Removed the local SolutionPackagerService implementation from TALXIS.CLI.Platform.Dataverse.Application
  • Added TALXIS.Platform.Metadata.Packaging 0.7.0 package references to:
    • TALXIS.CLI.Platform.Dataverse.Application
    • TALXIS.CLI.Features.Environment
  • Kept TALXIS.Platform.Metadata.Serialization.Xml in TALXIS.CLI.Features.Environment alongside the new packaging package reference
  • Updated DI registration to resolve SolutionPackagerService from the published package
  • Updated solution pack, unpack, import, and export/unpack paths to use the shared package API

Validation

  • Rebased onto current master
  • dotnet build TALXIS.CLI.sln -c Release
  • dotnet test TALXIS.CLI.sln -c Release --no-build
  • Manual smoke test: environment solution pack -> environment solution unpack on a minimal valid solution workspace

@metjuperry metjuperry closed this May 7, 2026
@metjuperry metjuperry deleted the feature/use-packaging-library branch May 7, 2026 16:09
@metjuperry metjuperry restored the feature/use-packaging-library branch May 7, 2026 16:10
@metjuperry metjuperry reopened this May 7, 2026
Replace the local SolutionPackager wrapper with TALXIS.Platform.Metadata.Packaging 0.7.0 in CLI pack, unpack, import, and export paths.

- remove the local ISolutionPackagerService contract and implementation
- register the shared packaging service from the package
- update CLI commands and export service to use the package API
- keep TALXIS.Platform.Metadata.Serialization.Xml alongside the new packaging reference in Features.Environment

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors txc solution pack/unpack (and related import/export paths) to use the published TALXIS.Platform.Metadata.Packaging library instead of the repo’s local SolutionPackagerLib wrapper and Core contract.

Changes:

  • Replace the repo-local ISolutionPackagerService contract + SolutionPackagerServiceImpl wrapper with TALXIS.Platform.Metadata.Packaging’s ISolutionPackagerService / SolutionPackagerService.
  • Update DI to resolve the packager service from the shared packaging package.
  • Update CLI command code to reference the shared packaging API namespace and add required package references.

Reviewed changes

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

Show a summary per file
File Description
src/TALXIS.CLI.Platform.Dataverse.Application/TALXIS.CLI.Platform.Dataverse.Application.csproj Removes SolutionPackagerLib reference plumbing; adds TALXIS.Platform.Metadata.Packaging package dependency.
src/TALXIS.CLI.Platform.Dataverse.Application/Services/DataverseSolutionExportService.cs Switches packager service type resolution to the shared packaging namespace.
src/TALXIS.CLI.Platform.Dataverse.Application/Sdk/SolutionPackagerService.cs Deletes the local SolutionPackagerLib wrapper implementation.
src/TALXIS.CLI.Platform.Dataverse.Application/DependencyInjection/DataverseApplicationServiceCollectionExtensions.cs Updates DI registration to use SolutionPackagerService from the shared packaging package.
src/TALXIS.CLI.Features.Environment/TALXIS.CLI.Features.Environment.csproj Adds TALXIS.Platform.Metadata.Packaging package dependency for CLI commands using the packager service.
src/TALXIS.CLI.Features.Environment/Solution/SolutionUnpackCliCommand.cs Updates packager service namespace import to the shared packaging package.
src/TALXIS.CLI.Features.Environment/Solution/SolutionPackCliCommand.cs Updates packager service namespace import to the shared packaging package.
src/TALXIS.CLI.Features.Environment/Solution/SolutionImportCliCommand.cs Imports the shared packaging namespace to resolve ISolutionPackagerService.
src/TALXIS.CLI.Core/Contracts/Dataverse/ISolutionPackagerService.cs Removes the repo-local packager service contract now provided by the shared packaging package.

@TomProkop TomProkop merged commit 3870c1c into master Jun 12, 2026
1 check passed
@TomProkop TomProkop deleted the feature/use-packaging-library branch June 12, 2026 09:40
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.

3 participants