Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Pack a tool with NuGet targeting multiple frameworks

$
0
0

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:

enter image description here

Is there a way of explicitly setting nuget to pack those files under their own separate target folder under tools\?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>