baseclass / Contrib.Nuget

Extending nuget with nuget packages
MIT License
30 stars 21 forks source link

Only copy files from nuget packages that the project actually depends on #7

Closed arcamab closed 9 years ago

arcamab commented 10 years ago

To work around an issue with nuget don't use absolute path for its hintpath elements in the csproj files we download all nuget packages to the same folder (and not under the solution's folder). We also use mixed architectures with different nuget packages for x86 and x64. When Nuget.Output copies all output folders we get different results depending on which nuget packages that are downloaded at the moment.

This patch will read the project's package.config file and only copy the files the project actually depends on.

The new target FilterPackages will unpack the nuget spec files and the old UnzipNuspec target is gone.

mnivet commented 9 years ago

For information, I've merge that pull request with the other ones in a branch named unofficial in my fork

If you're are interested by that unofficial maintenance branch you can found it here: https://github.com/mnivet/Contrib.Nuget/tree/unofficial

romerod commented 9 years ago

Thank you arcamab your fix is available in nuget package 1.0.9