diff --git a/README.md b/README.md index 6eb5220..d393077 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,18 @@ You can use `Console.WriteLine` method to out put your results. ```cs Console.WriteLine("hoge") ``` + +## Install External Libraries +If you want to use external libraries, do the following: + +- Add the following lines to [build.sh](build.sh), before the `mcs` line +(You can have multiple libraries by adding more lines) + +``` +nuget [LibraryName] +``` + +You can add `-reference` option or some others, if these are required. + +If you need to define env var `MONO_PATH`, please define it on Track UI. +You can't define any environment variables in `build.sh` diff --git a/README_ja.md b/README_ja.md index 87ea584..700dd93 100644 --- a/README_ja.md +++ b/README_ja.md @@ -22,3 +22,18 @@ public class MainApp ```cs Console.WriteLine("hoge") ``` + +## 外部ライブラリの追加方法 +外部ライブラリを使用する場合は以下の手順で実施してください。 + +- [build.sh](build.sh)に以下の内容を `mcs` の前に追加 +(複数のライブラリのインストールも行を追加していく事で可能です) + +``` +nuget [LibraryName] +``` + +必要に応じて`mcs`コマンドの`-reference`オプションを追加してください。 + +環境変数`MONO_PATH`が必要な場合は、TrackのUIより環境変数を設定してください。 +`build.sh`内でexportしても有効にはなりません。 diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..5cfebb3 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +#!/bin/sh +mcs src/*.cs -out:TheApp.exe diff --git a/cli-template.yml b/cli-template.yml index 7dbc6bc..036a030 100644 --- a/cli-template.yml +++ b/cli-template.yml @@ -1,7 +1,9 @@ build: - - mcs src/*.cs -out:TheApp.exe + - sh build.sh files: - - .gitignore + - build.sh - src/MainApp.cs main: src/MainApp.cs command: mono TheApp.exe +envConf: + imageName: "givery/track-mono-5.2"