Skip to content

A template for creating a NuGet Package that runs an exec task at build

License

Notifications You must be signed in to change notification settings

digitalcoyote/BuildTaskNuGetPackageTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuildTaskNuGetPackageTemplate

A template for creating a NuGet Package that runs an exec task at build based on the work done for NuGetDefense.

How to use this Template

Using this template is as simple as writing a console app.

  1. Create a repo from this template or run dotnet new nugetbuildtask
  2. Write the console app
  3. Modify MyBuildTask.nuspec with your package info
  4. Modify MyBuildTask.targets to pass in any necessary arguments from msbuild
  5. Change the After/Before Targets if you want it to run any time other than after the build finishes