I love this idea; OctoPack for example provides a custom .targets file that hooks into the project build. Having NuGet automatically import it would be great. Some OctoPack users complain that the .targets file and a custom MSBuild task DLL needs to be checked into source control even when Package Restore is enabled, due to the problem that adamralph points out. Jeff's suggestion of performing package restore prior to invoking MSBuild seems like a good option.
↧