A template for creating a NuGet Package that runs an exec task at build based on the work done for NuGetDefense.
Using this template is as simple as writing a console app.
- Create a repo from this template or run
dotnet new nugetbuildtask
- Write the console app
- Modify MyBuildTask.nuspec with your package info
- Modify MyBuildTask.targets to pass in any necessary arguments from msbuild
- Change the After/Before Targets if you want it to run any time other than after the build finishes
- Default:
<Target Name="MyBuildTask" AfterTargets="Build">
See MSBuild Docs for more info
- Default: