Skip to content

Commit

Permalink
Rename dotnet to msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Jan 2, 2019
1 parent cc62a96 commit 4523db9
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 51 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ build and distribute your applications.

## Extending with Plugins

bee comes with a set of builtin plugins like
`android`, `changelog`, `dotnet`, `doxygen`, `git`, `github`, `ios`, `nspec` `unity`, `version`, and more...
bee comes with a set of builtin plugins like
`android`, `changelog`, `msbuild`, `doxygen`, `git`, `github`, `ios`, `nspec` `unity`, `version`, and more...

Plugins allow you to customize and personalize bee to fit any requirement.
Are you missing a task or feature? Create your own plugins and contribute to bee! Share
Expand Down
2 changes: 1 addition & 1 deletion libexec/bee
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ customization:
see ~/.beerc
EXAMPLE
bee dotnet::build
bee msbuild::build
bee -v version::bump_minor
bee ios::archive'
fi
Expand Down
35 changes: 0 additions & 35 deletions plugins/dotnet/README.md

This file was deleted.

35 changes: 35 additions & 0 deletions plugins/msbuild/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
msbuild
=======

`msbuild::build`
---------------
- builds `MSBUILD_SOLUTION`

optional arguments:
- path to .csproj or .sln

`msbuild::clean`
---------------
- cleans `MSBUILD_SOLUTION`

`msbuild::rebuild`
-----------------
- cleans and builds `MSBUILD_SOLUTION`


Dependencies
============
3rd party:
- `msbuild` - https://www.mono-project.com


Examples
========
```
$ bee msbuild::build
$ bee msbuild::build MyProject.csproj
$ bee msbuild::clean
$ bee msbuild::rebuild
```
20 changes: 10 additions & 10 deletions plugins/dotnet/dotnet.sh → plugins/msbuild/msbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
# Author: @sschmid
# Build .NET apps

dotnet::_new() {
echo '# dotnet
DOTNET_SOLUTION="${PROJECT}.sln"
msbuild::_new() {
echo '# msbuild
MSBUILD_SOLUTION="${PROJECT}.sln"
'
}

dotnet::build() {
msbuild::build() {
local path
if [[ $# -eq 1 ]]; then
path="$1"
else
path="${DOTNET_SOLUTION}"
path="${MSBUILD_SOLUTION}"
fi

log_func "${path}"
msbuild /property:Configuration=Release /verbosity:minimal "${path}"
}

dotnet::clean() {
msbuild::clean() {
log_func
msbuild /target:Clean /property:Configuration=Release /verbosity:minimal "${DOTNET_SOLUTION}"
msbuild /target:Clean /property:Configuration=Release /verbosity:minimal "${MSBUILD_SOLUTION}"
}

dotnet::rebuild() {
msbuild::rebuild() {
log_func
dotnet::clean
dotnet::build
msbuild::clean
msbuild::build
}
2 changes: 1 addition & 1 deletion plugins/nspec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ nspec

`nspec::run`
---------------
- runs `dotnet::build` with `NSPEC_TESTS_PROJECT`
- runs `msbuild::build` with `NSPEC_TESTS_PROJECT`
- runs the test runner `NSPEC_TESTS_RUNNER` with `mono`

optional arguments:
Expand Down
4 changes: 2 additions & 2 deletions plugins/nspec/nspec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# Build and run nspec tests

nspec::_new() {
echo '# nspec => dotnet
echo '# nspec => msbuild
NSPEC_TESTS_PROJECT=Tests/Tests.sln
NSPEC_TESTS_RUNNER=Tests/bin/Release/Tests.exe'
}

nspec::run() {
log_func
dotnet::build "${NSPEC_TESTS_PROJECT}"
msbuild::build "${NSPEC_TESTS_PROJECT}"
mono "${NSPEC_TESTS_RUNNER}" "$@"
}

0 comments on commit 4523db9

Please sign in to comment.