Closed drewnoakes closed 3 years ago
does it get removed when you use dotnet restore
on the command line and then reloading the project itself?
The bug is in VS. Removing the item from the project updates the project.assets.json
file correctly.
Reloading the project in VS fixes it too.
How about have it automatically reload the project every time the project system updates that json file?
VS monitors that file. The bug is localised to the code that manages the tree. It isn't responding to the change notification correctly.
I have a fix for this. Will spend a little time tomorrow to tidy up some of the code around this area, as the fix on its own is very cryptic, and I think the class can be made more straightforward.
Visual Studio Version: Version 16.9.0 Preview 3.0 [30904.159.main]
(Moved from AB#1257238)
Likely a result of recent dependency tree changes.
Repro steps:
PackageReference
item and save the projectThis doesn't happen for assembly references.