Currently there is some issues with linking packages that does not have exact version, ie. Version="1.0.0-*" since that version string is straight "copied" as a folder.
One solution to this could be to read obj/project.assets.json that is generated by dotnet restore instead of the .csproj to get the currently restored version. This file also gives the benefit of that it also holds the path to the packages folder, removing the need to read the *.nuget.g.props
I'm willing to submit a PR for this it you think it sound like a good idea.
Thanks for an essential tool!
Currently there is some issues with linking packages that does not have exact version, ie.
Version="1.0.0-*"
since that version string is straight "copied" as a folder.One solution to this could be to read
obj/project.assets.json
that is generated bydotnet restore
instead of the.csproj
to get the currently restored version. This file also gives the benefit of that it also holds the path to the packages folder, removing the need to read the*.nuget.g.props
I'm willing to submit a PR for this it you think it sound like a good idea.