Skip to content

fix: script library builds twice during solution build#66

Open
zekelinAlex wants to merge 2 commits into
TALXIS:masterfrom
zekelinAlex:users/alexander.zekelin/fix-scriptlibrary-double-build
Open

fix: script library builds twice during solution build#66
zekelinAlex wants to merge 2 commits into
TALXIS:masterfrom
zekelinAlex:users/alexander.zekelin/fix-scriptlibrary-double-build

Conversation

@zekelinAlex

Copy link
Copy Markdown
Contributor

Script library projects were getting built twice when a solution referenced them. Once as a normal project reference, and again through GetScriptLibraryOutputs.

The probe target that pulls script libraries out of the reference list was running too late. By the time it removed them, AssignProjectConfiguration had already snapshotted the references, so the standard build picked them up anyway. Moved the probe to run before AssignProjectConfiguration so the removal actually sticks.

Same fix applied to gen pages.

TomProkop added a commit to metjuperry/tools-devkit-build that referenced this pull request Jun 12, 2026
* feat: upgrade Dataverse tasks to net10 host

Move the Dataverse build packages to a net10.0 / MSBuild 18 baseline,
register the tasks for the .NET task host, and replace pac.exe process
execution with direct SolutionPackagerLib invocation.

Remaining blocker: TALXIS.Platform.Metadata.Packaging from
TALXIS/platform-metadata#48 and TALXIS#66 is not published on NuGet yet, so
this repo cannot switch to the shared package dependency in a shippable
way yet.

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

* fix: log full exception details from SolutionPackager and include System.IO.Packaging dependency

- Replace ex.Message with Log.LogErrorFromException(ex, showStackTrace: true)
  so build logs include the full stack trace and inner-exception chain
- Remove ProcessCanvasApps field assignments (not part of PackagerArguments API)
- Add System.IO.Packaging.dll from PAC CLI tools as a Private reference
  so SolutionPackagerLib can locate its transitive dependency at runtime

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

* chore: bump PDPackage, ScriptLibrary and Sdk to net10.0

Absorbs the remaining net8.0→net10.0 bumps from PR TALXIS#42
(chore/upgrade-tfm-net10) for full repo-wide alignment.

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

---------

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.

1 participant