mhutch / MonoDevelop.MSBuildEditor

Improved MSBuild editing support
Other
228 stars 26 forks source link

Show package version on `PackageReference` when it's set centrally #247

Open chucker opened 2 months ago

chucker commented 2 months ago

If I use a Directory.Packages.props with content like:

<Project>
  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  </PropertyGroup>
  <ItemGroup>
    <PackageVersion Include="CefSharp.Wpf" Version="127.3.50" />
  </ItemGroup>
</Project>

And then reference that package in my csproj (notice that leaving out the version is mandatory in this case):

        <PackageReference Include="CefSharp.Wpf" />

, it would be neat to see, in the package tooltip, which version it has inferred from the PackageVersion element. That way, I'd have to jump between files a little less.

KirillOsenkov commented 1 month ago

Would also be nice to show available package versions when editing the PackageVersion Version in Directory.Packages.props.