baseclass / Contrib.Nuget

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

Creates nuspec files from consumed packages #49

Open Maradaehne opened 6 years ago

Maradaehne commented 6 years ago

Hallo,

we recognized that this nuget packages creates nuspec files from other consumed nuget packages in their packages folder. Example: We consume Newtonsoft.Json package. After installing Baseclass.Contrib.Nuget and building the project, in the packages folder of Newtonsoft.Json is a file named "Newtonsoft.Json.nuspec". This file lies directly next to Newtonsoft.Json.nupkg. Now our problem is, that the build server is searching for all nuspec-files and tries to pack the corresponding project-files. Since the packages folder now contains "Newtonsoft.Json.nuspec", the build server tries to pack "Newtonsoft.Json.csproj", which doesn't exist. Therefore our build fails.

Is it possible, that creating nuspec files from consumed projects could be avoided?

Best Regards

romerod commented 6 years ago

The nuspec which are next to the nupkg have been unpacked from the nupkg.

I have seen other tools unpack the nuspec files too, I would try to ignore the content of the packages folder as it only contains files from third-party dependencies.

Unpacking the nuspec speeds up build time and is the way it currently works.


From: André Dähne notifications@github.com Sent: Monday, March 26, 2018 5:21:59 PM To: baseclass/Contrib.Nuget Cc: Subscribed Subject: [baseclass/Contrib.Nuget] Creates nuspec files from consumed packages (#49)

Hallo,

we recognized that this nuget packages creates nuspec files from other consumed nuget packages in their packages folder. Example: We consume Newtonsoft.Json package. After installing Baseclass.Contrib.Nuget and building the project, in the packages folder of Newtonsoft.Json is a file named "Newtonsoft.Json.nuspec". This file lies directly next to Newtonsoft.Json.nupkg. Now our problem is, that the build server is searching for all nuspec-files and tries to pack the corresponding project-files. Since the packages folder now contains "Newtonsoft.Json.nuspec", the build server tries to pack "Newtonsoft.Json.csproj", which doesn't exist. Therefore our build fails.

Is it possible, that creating nuspec files from consumed projects could be avoided?

Best Regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/baseclass/Contrib.Nuget/issues/49, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADEJ3jSxeqOtjqqHAuDIP2xIpMZw1sQIks5tiQeXgaJpZM4S7U3o.