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

MSBuild pack: How to include certain file types to be copied to output?

$
0
0

In my .csproj file, I defined the following ItemGruop:

<ItemGroup><Content Include="$(TargetDir)\*.*" PackageCopyToOutput="true"><Pack>true</Pack><PackagePath>\lib\</PackagePath></Content></ItemGroup>

In a post build event, I have to produce a license file for my produced DLL.After executing the pack command, all the files are copied to the lib folder in the package including my license file.But when I install the nuget package in a project, the license file is not copied while the other DLLs are copied. So, I suppose that certain file types are prevented from being copied to the output folder. How can I include these files?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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