Skip to content

Conversation

@jimmylewis
Copy link
Contributor

During the restore-on-save operation, we were using a cached instance of the "before" manifest, which was used to clean up file deltas. A side effect of this was that we used the working folder for that cached manifest.

If the user makes changes to a second libman.json, then it cleans the delta between that file and the previous libman.json in its folder. That typically would appear as deleting the files out of one project when making changes the libman.json file in a different project.

The fix is straightforward: cache the instance in a per-document form instead of a single stored value.

Resolves #800

During the restore-on-save operation, we were using a cached instance of the "before" manifest, which was used to clean up file deltas.  A side effect of this was that we used the working folder for that cached manifest.

If the user makes changes to a second libman.json, then it cleans the delta between that file and the previous libman.json in its folder.  That typically would appear as deleting the files out of one project when making changes the libman.json file in a different project.

The fix is straightforward: cache the instance in a per-document form instead of a single stored value.
@dbreshears
Copy link
Member

dbreshears commented Oct 14, 2025

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 801 in repo aspnet/LibraryManager

@dbreshears dbreshears merged commit a4be519 into aspnet:main Oct 15, 2025
2 checks passed
@jimmylewis jimmylewis deleted the sxsprojects branch October 15, 2025 05:36
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.

Adjacent projects using LibMan delete each other's downloads

2 participants