Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

NUGET PACKAge with json file.

$
0
0

Hi, I am new to Dot net. I am trying to create a NuGet package for a project having a console  Dotnet core having just a JSON file with all config settings. using that NuGet package gives me error for the file physical path. please Do let me know how to create NuGet or having the proper file path

File added this way

<ItemGroup>
<Content Include="Configuration.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

file path in property bar is 

D:\evaluations\vickey\test\Configuration.json

same folder where test project exist.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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