Repository navigation
Build the tool once in a solution build, so its deps.json has one writer - #91
Merged
Merged
Conversation
Main's build failed once with "The process cannot access the file assembly-differ.deps.json because it is being used by another process". The tests' reference to the tool set TargetFramework=net11.0 as a global property, so MSBuild built the tool a second time, in parallel with the solution's own build of it. With one target framework since #79 the property is not needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A solution build now builds the tool once. Main's CI failed once because two builds of it wrote
assembly-differ.deps.jsonat the same time.Prompt summary: Main's CI failed on the commit of #88 while getting assembly-differ to 1.0; this fixes the cause.
Why
The
buildjob failed withMSB4018: The "GenerateDepsFile" task failed unexpectedly ... The process cannot access the file '.../bin/Release/net11.0/assembly-differ.deps.json' because it is being used by another process. The test project references the tool withSetTargetFramework="TargetFramework=net11.0". Since #79 made the tool single-target, that global property makes MSBuild treat the reference as a second instance of the project, which it builds in parallel with the solution's own instance.What
One instance
The reference keeps only
ReferenceOutputAssembly="false", and a comment says why it must carry no global properties. A localdotnet build -c Release -v nshows one build instance of the tool fewer than on main, 2 instead of 3.Verify
dotnet build -c Release mise run test🤖 Generated with Claude Code