"Couldn't find repository path for C:\Users\sbard\.nuget\packages\select.htmltopdf.netcore\21.2.0\contentFiles\any\any because there is no applicable working folder."
It appears to be trying to add the Nuget package into the repository (which I would prefer it didn't do). It seems to be getting this path by grabbing the Package Reference out of the csproj file and asking Nuget where it has been stored locally.
Is this intended behavior to try to add all the Nuget package files to the repository? If so, how can I turn this off?
I have continue to look into what is happening and I think I found out the "what is causing the issue" part. A particular Nuget package I am using called Select.HtmlToPdf.NetCore has an unusual setting in the .nuspec file that I don't see used in any of my other Nuget packages for the project.
I'll omit the other unrelated parts of the file and just mention the interesting part:
Code: Select all
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> <metadata> ... <contentFiles> <files include="any/any/Select.Html.dep" buildAction="Content" copyToOutput="true" /> </contentFiles> </metadata> </package>