When importing a package that adds content to the project it completes without displaying any errors but doesn't add the files.
Steps to reproduce:
Install-Package jQuery.The reference is added correctly but the content is no added to the project.
Note: It works correctly with the classic projects.
@nguerrera or @emgarten should know who would own this.
@natidea
@roysanchez Dotnet core does not support the Content/ folder used in JQuery, this was previously installed directly into the project using Visual Studio and no longer works when restoring packages cross platform from the command line. Packages must move to using ContentFiles/ which is supported for both project.json and PackageReference projects.
@emgarten I used jQuery only as an example, I got this error trying to add an internal dependency to a new project and not seeing the files.
Is there a specific way that it needs to be handled, I tried the following configurations and none seem to work: gist of the csproj and generated nuspec
ContentFiles support was recently added to NuGet but it isn't in the current dotnet CLI release. Once it is you will see items under contentFiles in the generates props file for the project.
@emgarten Nice, should I close this or wait for the release?
@roysanchez I think this can be closed, and then watch for it in the next release. thanks!
@roysanchez @emgarten Is this issue resolved? I'm including a nuget on my dotnet core project using VS2017 and I see the contentFiles inside the nuget, but I can't manage to copy them into my local project.
Most helpful comment
@roysanchez @emgarten Is this issue resolved? I'm including a nuget on my dotnet core project using VS2017 and I see the contentFiles inside the nuget, but I can't manage to copy them into my local project.