Open loligans opened 2 years ago
Interesting! Yeah I think we could support this (it’d currently ignore any package elements that didn’t match the expected format). I’ll take a look at this tomorrow morning and see what would be involved 🙂
Still looking into this (sorry, been pretty busy at work this week) 🙂
No problem, I appreciate you looking into this 😌
@tintoy, @loligans Please note that deprecated CentralPackageVersions [1] has been superseded by Central Package Management [2].
Therefore I strongly suggest to add support for Central Package Management and its Directory.Packages.props
file.
[1] https://github.com/microsoft/MSBuildSdks/tree/main/src/CentralPackageVersions#deprecated [2] https://learn.microsoft.com/en-us/nuget/consume-packages/Central-Package-Management
It would be very nice if completion information could be provided for projects that use:
Microsoft.Build.CentralPackageVersions
and itsPackages.props
file.Project location here: https://github.com/microsoft/MSBuildSdks/tree/main/src/CentralPackageVersions
Directory.Build.targets
Directory.Build.targets
Packages.props
Add your packages (Note: the usage of the
Update
attribute. I am unable to get completion information from thisPackageReference
when there is noInclude
attribute. In addition,GlobalPackageReference
properties do not provide completions either. As an aside: when I do provide anInclude
attribute, MSBuild does provide completion information):