snitch
snitch copied to clipboard
Error with nuget package declared with 'GlobalPackageReference' tag in Directory.Packages.props
If a library is declared using 'GlobalPackageReference' in Directory.Packages.props, then running snitch on the solution returns the following error:
Error: Version '' for package '$LIBRARY_NAME$' is not valid. (Parameter 'version')
This is a showstopper.
<ItemGroup>
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
</ItemGroup>
Error: Version '' for package 'StyleCop.Analyzers' is not valid. (Parameter 'version')
Snitch has no support for central package management, but if someone wants to send a PR I'll take a look at it.
@patriksvensson I've opened a PR that implements this.