Skip to content

Restore once and evaluate each project once when cracking - #389

Merged
nojaf merged 2 commits into
mainfrom
faster-project-cracking
Oct 17, 2026
Merged

nojaf merged 2 commits into
mainfrom
faster-project-cracking

Conversation

@nojaf

@nojaf nojaf commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Every design time build ran its own /restore with a TargetFramework global property. A restore given a TargetFramework writes the assets file for that framework only, and the main project's restore passed its framework on to the referenced projects. A referenced project with several target frameworks was left with an assets file for one of them, and the next dotnet build --no-restore of another framework failed with NETSDK1005. The parallel builds also restored overlapping projects at the same time.

The main project is now restored once, without a TargetFramework, which covers its references. The restore runs while the references are walked, and the design time builds start after it.

The walk now asks MSBuild for the project references, the reference assembly setting and the target framework in one evaluation, so a project costs one evaluation instead of three.

Release 0.17.2 and bump the fantomas tool to 9.0.0-alpha-001.

nojaf added 2 commits October 17, 2026 17:21
Every design time build ran its own /restore with a TargetFramework
global property. A restore given a TargetFramework writes the assets
file for that framework only, and the main project's restore passed its
framework on to the referenced projects. A referenced project with
several target frameworks was left with an assets file for one of them,
and the next `dotnet build --no-restore` of another framework failed
with NETSDK1005. The parallel builds also restored overlapping projects
at the same time.

The main project is now restored once, without a TargetFramework, which
covers its references. The restore runs while the references are
walked, and the design time builds start after it.

The walk now asks MSBuild for the project references, the reference
assembly setting and the target framework in one evaluation, so a
project costs one evaluation instead of three.

Release 0.17.2 and bump the fantomas tool to 9.0.0-alpha-001.
@nojaf
nojaf merged commit c1fa92a into main Oct 17, 2026
2 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.

1 participant