Skip to content

(#1033) Fix build property evaluation and enable SDK roll-forward - #1035

Merged
kant2002 merged 5 commits into
ForNeVeR:mainfrom
pkazakov-dev:feature/enable-rollforward-latestfeature
Nov 10, 2026
Merged

kant2002 merged 5 commits into
ForNeVeR:mainfrom
pkazakov-dev:feature/enable-rollforward-latestfeature

Conversation

@pkazakov-dev

@pkazakov-dev pkazakov-dev commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Aims to fix #1033

The failure came from mixing incompatible versions of build libraries.

Previously, NUKE loaded the project inside its own process. With the newer .NET SDK, project evaluation needed a newer NuGet.Frameworks library, but NUKE already had an older version loaded. That caused an exception before publishing started.

The fix runs project evaluation through dotnet msbuild in a separate process. MSBuild uses the libraries supplied with the selected SDK and returns the results as JSON. NUKE reads those results without loading the SDK’s libraries itself.

The property list specifies which values the build script needs: the project version, project location, and output directories. MSBuild calculates these values using the project’s settings, including Debug or Release configuration.

We could request each property separately. Listing them together gets everything in one call, and the helper method keeps that logic in one place.

Finally, latestFeature allows a newer installed .NET 10 SDK to be selected. The evaluation change removes the incompatibility that previously prevented using it.

@pkazakov-dev
pkazakov-dev marked this pull request as ready for review November 10, 2026 07:23
@kant2002
kant2002 merged commit 1d33e93 into ForNeVeR:main Nov 10, 2026
8 checks passed
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.

Unblock updating to newer version of .NET SDK

2 participants