mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
228 stars 26 forks source link

Package Reference TreatAsUsed is not recognized #242

Closed Thieum closed 2 months ago

Thieum commented 3 months ago

This flag is used to prevent dependencies cleaner from Visual Studio to remove the reference.

image

KirillOsenkov commented 3 months ago

do you have a link where we can read more about this metadata? I haven't seen this beforep

msedi commented 2 months ago

The same here:

image

@KirillOsenkov as you asked. Here is some reference:

https://stackoverflow.com/questions/70452355/keep-special-projectreference-when-using-remove-unused-reference

From reddit: https://www.reddit.com/r/VisualStudio/comments/s29ir2/how_to_keep_projectreference_when_using_remove/

The microsoft docs also do say nothing about this. Also the project schema definition of the csproj does not say anything.

Does this help?