Skip to content

Review fixes: align naming conventions across ILRepack integration#67

Open
TomProkop wants to merge 8 commits into
masterfrom
pr-48-review-fixes
Open

Review fixes: align naming conventions across ILRepack integration#67
TomProkop wants to merge 8 commits into
masterfrom
pr-48-review-fixes

Conversation

@TomProkop

Copy link
Copy Markdown
Member

Follow-up to #48 — addresses naming consistency review feedback. Should be merged after (or squashed into) #48.

PR #48 fixes (commit 1)

  • Worker target: TalxisMergePluginDependenciesMergeAssemblyDependencies (unprefixed worker convention)
  • Toggle property: TalxisMergePluginDependencies (opt-in) → TalxisSkipAssemblyMerge (opt-out, TalxisSkip* family)
  • Target file: MergePluginDependencies.targetsMergeAssemblyDependencies.targets
  • Stub file: StubForILRepack.targetsDisableILRepackAutoMerge.targets
  • Removed dead TalxisILRepackStub property + unused Tasks stub file

Repo-wide consistency (commit 2)

  • PDPackage: DataverseILRepack → split into MergePackageAssemblyDependencies (worker) + _TalxisPdPackageAutoMergeHook (private hook)
  • PDPackage: DataversePackageRunILRepack + SkipPackageILRepack → unified to TalxisSkipAssemblyMerge
  • PDPackage: DataversePackageILRepackKeyFileILRepackKeyFile
  • Documented 4 previously undocumented skip props in Solution + PDPackage READMEs

Convention applied

Layer Convention Example
Worker target Unprefixed verb MergeAssemblyDependencies, ValidateDuplicateGuids
Lifecycle hook Talxis* / _Talxis* TalxisValidateDuplicateGuids, _TalxisPluginAutoMergeHook
Behavioral switch TalxisSkip* (opt-out) TalxisSkipAssemblyMerge, TalxisSkipDuplicateGuidValidation
Project config <ProjectType><Thing> PluginTargetFramework, ILRepackKeyFile

zekelinAlex and others added 8 commits April 26, 2026 13:26
The exclusion list claimed to skip Microsoft.Xrm.Sdk* (per README and
header comment) but only filtered three exact filenames in practice:
Microsoft.Xrm.Sdk, .Deployment, .Workflow. Any future or third-party
Microsoft.Xrm.Sdk.<x>.dll that ended up in OutDir would be merged into
the plugin assembly and cause runtime version clashes inside the
Dataverse sandbox.

Replace the two specific Deployment/Workflow entries with a
StartsWith('Microsoft.Xrm.Sdk.') prefix check covering all sub-
namespaces. Exact 'Microsoft.Xrm.Sdk' (no trailing dot) stays as its
own entry so the base assembly is still excluded.
Align the public API surface of the dependency-merging feature with
the established naming conventions in this repository:

Targets:
  - Worker target (unprefixed, callable): MergeAssemblyDependencies
  - Hook targets (private, auto-wired): _TalxisPluginAutoMergeHook,
    _TalxisWorkflowActivityAutoMergeHook (unchanged)

Properties:
  - Opt-out switch: TalxisSkipAssemblyMerge (TalxisSkip* family,
    opt-out polarity, matching TalxisSkipDuplicateGuidValidation etc.)

Files:
  - MergePluginDependencies.targets -> MergeAssemblyDependencies.targets
  - StubForILRepack.targets -> DisableILRepackAutoMerge.targets
  - Remove dead Tasks/StubForILRepack.targets + $(TalxisILRepackStub)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Bring the pre-existing PDPackage ILRepack integration into the same
convention used across the rest of the repo:

Targets:
  - DataverseILRepack (hook with inline logic) → split into
    MergePackageAssemblyDependencies (unprefixed worker) +
    _TalxisPdPackageAutoMergeHook (private hook)

Properties:
  - DataversePackageRunILRepack + SkipPackageILRepack → unified to
    TalxisSkipAssemblyMerge (same switch used by Plugin/WorkflowActivity)
  - DataversePackageILRepackKeyFile → ILRepackKeyFile (generic, no
    Dataverse prefix on a tool-config property)

Documentation:
  - Add previously undocumented TalxisSkipDuplicateGuidValidation and
    TalxisSkipQuickFindValidation to Solution/README.md
  - Add previously undocumented TalxisSkipPcfDependencyValidation and
    TalxisIgnoredPcfPrefixes to PDPackage/README.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants