CommonBuildToolset / CBT.Modules

Modules for CBT
MIT License
9 stars 5 forks source link

CBT.NuGet property generation fails when packages.config exists and project is using PackageReference #254

Open jeffkl opened 6 years ago

jeffkl commented 6 years ago

If a project is using PackageReference, property generation still attempts to read packages.config and generate properties. However, there are no packages in the package folder so you get an error:

The NuGet repository 'XXX' does not exist.  Ensure that NuGet is restore packages to the location specified in your NuGet.config.

We need to detect this condition and not try to create properties from packages.config