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

How to include JSON files in a NuGet package (nupkg)? [duplicate]

$
0
0

I have been following a previous SO question. So I ended up writing in my csproj:

<ItemGroup><Content Include="Data\Dicts\*.json"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory><PackageCopyToOutput>true</PackageCopyToOutput><IncludeInPackage>true</IncludeInPackage><BuildAction>Content</BuildAction><Pack>true</Pack><PackagePath>contentFiles/any/any/Json;content/Json</PackagePath></Content></ItemGroup>

However it seems it is being installed into two folders at the same time:

enter image description here

What did I misunderstood ?

Thanks


Viewing all articles
Browse latest Browse all 3067

Trending Articles



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