Feature: support for "build extension" projects.

Topics: General
Oct 7, 2014 at 6:01 AM
I'd like to contribute a feature to NuGet.exe: support for "build extension" projects.

The feature is very simple: a new argument for the "pack" command, -IsBuildExtension, which:
  1. sets the targetFolder to "build",
  2. adds ".tasks" and ".targets" to the allowedOutputExtensions, and
  3. marks the package as a developmentDependency.
Additionally, I'd add a <NuGetAdditionalArguments> property to NuGet.targets, which would allow you to pass either -IsBuildExtension or the existing -Tool, and any other future parameters, from your VS project file.

This feature makes it easy to author build extension NuGet packages.
Oct 17, 2014 at 5:46 AM
So... what do people think about this?

I read the "contributing to NuGet" page, which says I should get my environment set up for code reviews, but the documentation link for that is broken (https://nuget.codeplex.com/documentation?title=Code%20Reviews)

It also says to not send a pull request until the review is approved, but I'm not sure how to initiate a code review.

If someone would like to take a look at my implementation of the proposed change, you can take a look at the changes in my forks:

https://nuget.codeplex.com/SourceControl/network/forks/jazzdelightsme/NuGet?branch=danthom/feature_IsBuildExtensionParam

https://nuget.codeplex.com/SourceControl/network/forks/jazzdelightsme/NuGet?branch=danthom/CleanTarget