loic-sharma / BaGet

A lightweight NuGet and symbol server
https://loic-sharma.github.io/BaGet/
MIT License
2.61k stars 669 forks source link

Fix unclosed XML tag in PackageReference syntax #737

Closed nloum closed 2 years ago

nloum commented 2 years ago

When you want to add a dependency from a BaGet server, you have the option to copy the <PackageReference> element that would go in the .csproj file. However the element you copy is malformed: it is unclosed. E.g., here's what you copy:

<PackageReference Include="Mypackage" Version="1.2.3">

What you should copy is this:

<PackageReference Include="Mypackage" Version="1.2.3"/>

Notice the /> at the end. The backslash was missing. This PR fixes that.

loic-sharma commented 2 years ago

Thanks for the contribution!