This is sort of a use-case. Not sure if NuGet was originally created for this so I can imagine that the consensus will be that I should not do what I'd like.
Goal:
Package and distribute simple console applications as tools for other projects. I expect them to be runnable from command prompt. Something like Nunit's console runner (nunit-console.exe).
I use C# targeting net461 and netcore2.
Questions:
I will reference to my tooling app and it's package as MyApp
and MyPkg
.
- Can you confirm that the convention is that MyApp binaries should go into the
tools
folder in the NuGet package? - Whatever dependency I add to MyApp (such as CommandLineArgumentsParser), they will show up in the dependent projects as references/dependencies. I wish they didn't - can it be prevented?
- There are other dependency
dll
s in the bin folder next to MyApp binary. They are dlls from other packages. Is it a good practice to include those in my package as well? - If I specify package X as dependency to MyPkg, package X will be installed for the project depending on MyPkg. Can X's DLLs be referenced somehow so that I don't have to pack them with MyApp?
I hope that my questions are clear. Please, ask for clarification if what I wrote doesn't quite make sense to you - can't expect that you are a mindreader:)
Also, if you have any online resources that I could read that tackles that subject, I would be super happy to chew through them.
Thanks!