NuGet / Samples

NuGet team sample repo
Other
136 stars 108 forks source link

ContentFilesExample problems #21

Closed conficient closed 6 years ago

conficient commented 6 years ago

I am trying to understand the new ContentFiles feature, so I created a test solution with .NET Framework 4.7.1, 4.7.2, .NET Standard 2 and .NET Core 2.0 projects. All are set up to use PackageReference rather than packages.config. https://github.com/conficient/ContentFileTest

I added the ContentFilesSample Nuget package to all four projects in the solution.

This appeared to work in the .NET Standard and Core projects: the data.txt, ExampleInternals.cs files and the tools folders were created. However the images folder was not.

The Framework projects were unchanged, and had nothing added. I upgraded the net471/net472 projects to use the new format, and tried again.

This time I got errors:

CSC : error CS2001: Source file 'C:\Users\Howard\.nuget\packages\contentfilesexample\1.0.2\contentFiles\cs\portable-net45+wpa81+wp8+win8\ExampleInternals.cs' could not be found.

I checked this folder and found this: image

Bugs:

karann-msft commented 6 years ago

Please create issues on our Home repo.