Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored Jan 26, 2024
1 parent c33b25a commit 7f2e78e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ This action gets versions from csproj/vbproj.

![test](https://github.com/kzrnm/get-net-sdk-project-versions-action/workflows/build-test/badge.svg?branch=master)

## Usage

```yml
- uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: YourProject/YourProject.csproj
- run: echo "${{steps.get-version.outputs.version}}"
- run: echo "${{steps.get-version.outputs.version-prefix}}"
- run: echo "${{steps.get-version.outputs.version-suffix}}"
- run: echo "${{steps.get-version.outputs.package-version}}"
- run: echo "${{steps.get-version.outputs.assembly-version}}"
- run: echo "${{steps.get-version.outputs.file-version}}"
- run: echo "${{steps.get-version.outputs.informational-version}}"
```
## Input
### `proj-path`
Expand Down Expand Up @@ -33,24 +49,8 @@ This action gets versions from csproj/vbproj.

`<InformationalVersion>`

## Usage

```yml
- uses: kzrnm/get-net-sdk-project-versions-action@v1
id: get-version
with:
proj-path: YourProject/YourProject.csproj
- run: echo "${{steps.get-version.outputs.version}}"
- run: echo "${{steps.get-version.outputs.version-prefix}}"
- run: echo "${{steps.get-version.outputs.version-suffix}}"
- run: echo "${{steps.get-version.outputs.package-version}}"
- run: echo "${{steps.get-version.outputs.assembly-version}}"
- run: echo "${{steps.get-version.outputs.file-version}}"
- run: echo "${{steps.get-version.outputs.informational-version}}"
```
## Reference

- [Additions to the csproj format for .NET Core - .NET Core CLI | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/core/tools/csproj)
- [NuGet Package Version Reference | Microsoft Docs](https://docs.microsoft.com/nuget/concepts/package-versioning)
- [csproj のバージョン 管理 について - BEACHSIDE BLOG](https://blog.beachside.dev/entry/2019/06/06/190000) Japanese
- [csproj のバージョン 管理 について - BEACHSIDE BLOG](https://blog.beachside.dev/entry/2019/06/06/190000) Japanese

0 comments on commit 7f2e78e

Please sign in to comment.