File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 16
16
## これは何?
17
17
18
18
.NETやそのドキュメントなどに、現在のバージョンを埋め込みたいと考えたことはありませんか?
19
- 更に、CIでそのようさ操作を自動化したいが 、追加の作業があまりに不透明かつ多くて閉口したことはありませんか?
19
+ 更に、CIで操作を自動化したいが 、追加の作業があまりに不透明かつ多くて閉口したことはありませんか?
20
20
21
- C#ではこのような情報を 、慣例で` AssemblyInfo.cs ` ファイルに記述します:
21
+ C#ではバージョンに関する情報を 、慣例で` AssemblyInfo.cs ` ファイルに記述します:
22
22
23
23
``` csharp
24
24
using System .Reflection ;
@@ -153,9 +153,13 @@ namespace YourApp
153
153
## コマンドラインインターフェイス (CLI)
154
154
155
155
RelaxVersionerは、dotnet CLI toolに対応しています。
156
- ` rv ` コマンドは、 ` dotnet tool install -g rv-cli ` でインストールすることが出来ます。
156
+ ` rv ` コマンドは、以下のコマンドでインストールすることが出来ます:
157
157
158
- 以下のようにCLIコマンドを使用することで、簡単にバージョン文字列を取得出来ます:
158
+ ``` bash
159
+ $ dotnet tool install -g rv-cli
160
+ ```
161
+
162
+ 以下のように` rv ` コマンドを使用することで、簡単にバージョン文字列を取得出来ます:
159
163
160
164
``` bash
161
165
$ rv .
Original file line number Diff line number Diff line change @@ -150,9 +150,13 @@ namespace YourApp
150
150
## Command line interface (CLI)
151
151
152
152
RelaxVersioner supports the dotnet CLI tool.
153
- The ` rv ` command can be installed with ` dotnet tool install -g rv-cli ` .
153
+ The ` rv ` command can be installed with:
154
154
155
- You can easily obtain the version string by using the CLI command as follows:
155
+ ``` bash
156
+ $ dotnet tool install -g rv-cli
157
+ ```
158
+
159
+ You can easily obtain the version string by using the ` rv ` command as follows:
156
160
157
161
``` bash
158
162
$ rv .
You can’t perform that action at this time.
0 commit comments