Nuget files not accessible from the referenced project

Viewed 14

I recently converted from nuspec to package reference using csproj file. While doing so, I have encountered the following situation. My nupkg contents look like this. When I reference this nuget in any of my projects, I do not see the json files and cannot access them. Where are those files and what am I doing wrong? nupkgFile

My nuget csproject has the following code for including the json files. If I keep the PackagePath to "content;contentFiles" I could see the json files in the referenced project. However, they are following the folder structure rather than a flat one like the one in the screenshot.

<ItemGroup>
        <None Include="xyz\abx\aturesMap.json" CopyToOutputDirectory="Always" Pack="True">
            <PackageCopyToOutput>true</PackageCopyToOutput>
            <PackagePath/>
        </None>
0 Answers
Related