cargo-nuget icon indicating copy to clipboard operation
cargo-nuget copied to clipboard

Support Tool Package

Open commonsensesoftware opened this issue 4 years ago • 1 comments

It would be great if this crate supported Tool packages as well. This could be solved by #30 if it was available, but first-class support would be better. I believe this would be detectable by looking for the [[bin]] section or the presence of main.rs (as opposed to lib.rs).

commonsensesoftware avatar Aug 03 '20 18:08 commonsensesoftware

Hey @commonsensesoftware :wave:

I haven't actually looked much at tool packages but it looks like they follow the same structure, but have this extra bit of metadata in the nuspec:

<packageTypes>
  <packageType name="DotnetTool" />
</packageTypes>

This seems like it would be nice to support!

KodrAus avatar Jan 08 '21 08:01 KodrAus