gulp-dotnet-cli
gulp plugin for the dotnet cli.
You can view our Api docs, or read this blog post
Each interface in the docs should describe the objects you must pass in. For example IBuildModel is the interface containing the declaration of options for the build
action.
Usage
You must have the dotnet cli installed and on your path.
First, install gulp-dotnet-cli
npm install --save-dev gulp-dotnet-cli
Then add it to your gulpfile.js
Simple Example:
let clean restore build test pack publish run = ;let gulp = ;//cleangulp;//restore nuget packagesgulp;//compilegulp;//run unit testsgulp;//compile and publish an application to the local filesystemgulp;//rungulp;
More Complicated example:
let clean restore build test pack publish run = ;let version = `1.3.` + processenvBUILD_NUMBER || '0';let configuration = processenvBUILD_CONFIGURATION || 'Release';let gulp = ;//cleangulp;//restore nuget packagesgulp;//compilegulp;//run unit testsgulp;//compile and publish an application to the local filesystemgulp;//convert a project to a nuget packagegulp;//push nuget packages to a servergulp;//rungulp;
You can find a working example in our test directory
Generating docs
You can generate new docs to host by running yarn run docs
or npm run docs
. The docs folder is tracked with git lfs, you must have it installed if you wish to update the docs folder.