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

add sqlite db file from a class library to asp core mvc output directory on project build

$
0
0

so I created a class library project and put my SQLite DB in itand set these lines in .csproj file

<ItemGroup><Content Include="Data\DataBase\locations.db"><CopyToOutputDirectory>Always</CopyToOutputDirectory></Content></ItemGroup>

if I locally reference that class library to my main project (asp ore) its works fine and on every build, it will copy the DB file to the below dir

***\bin\Debug\net5.0\Data\DataBase

and it works fine

but when I publish the class library to NuGetand install it on my main project it doesn't copy the file

any help why this is happening and what should I do

this is my package in NuGet package explorer

enter image description here


Viewing all articles
Browse latest Browse all 3117

Trending Articles



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