mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
211 stars 24 forks source link

`PrivateAssets` and `IncludeAssets` are showing warnings as unknown #233

Open HakamFostok opened 2 months ago

HakamFostok commented 2 months ago

In the Directory.Packages.props file, I have a the following

image

image

In both cases PackageVersion and GlobalPackageReference the PrivateAssets and IncludeAssets are showing a yellow underline and the following warning

image

Note: I would like to help in solving this if provided with proper guidance, I already contributed to this amazing project and I would love to do that again, if I can

Thank you ver much

mhutch commented 2 months ago

Hi! The correct fix would be to add GlobalPackageReference to the list of items these metadata apply to: https://github.com/mhutch/MonoDevelop.MSBuildEditor/blob/d95cfbc8e5b6f6a499f8956a6f6a2394db02abfe/MonoDevelop.MSBuild/Schemas/CommonTargets.buildschema.json#L985