I have an .Net SDK project targeting .Net core 2.1 and .Net 4.6.1, I wanted to package it as a tool so I added the IsTool
element to my project file, this ensures that the files will be added under the tools\
folder within the package.
The issue I have is that when I package with the IsTool=true
option all files are bundled together into the some tools\
folder within the package, while the output of a normal assembly targeting multiple frameworks they would be placed under a folder for each respective target assembly, i.e. lib\net461
and lib\netcoreapp2.1
, see below:
Is there a way of explicitly setting nuget to pack those files under their own separate target folder under tools\
?