@sunhotels/grunt-dotnet
v0.0.1
Published
Build tools for dotnet core
Downloads
2
Readme
Dotnet core build tools
Net core has some pretty good build tools already integrated. But we found them missing some small parts. So we have built our own on top of its.
grunt.initConfig({
dotnet: {
build: {
src: ['Sample.sln'],
options: {
msbuildProperties: {
version: pkg.version
}
}
}
}
});
If there are more than one files the command while be executed sequentially per each. So be carefull:
- Use the solution file for build, restore.
- Use project files for pack, test.
Flexible commands
Target names would be pass as the dotnet
command. You could specify it though:
dotnet: {
customTarget: {
options: {
command: 'build'
}
}
}
Full flexible
'sample-command': {
src: ['*.sln'],
options: {
hostOptions: {
help: true,
customOption: {
name: 'CustomHostOption',
value: 'CustomHostOptionValue'
},
customSwitch: {
name: 'CustomHostSwitch',
value: true
}
},
msbuildProperties: {
version: pkg.version
},
commonOptions: {
verbose: true,
customOption: {
name: 'CustomCommonOption',
value: 'CustomCommonOptionValue'
},
customSwitch: {
name: 'CustomCommonSwitch',
value: true
}
}
}
}