Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kzrnm/get-net-sdk-project-versions-action

get .NET SDK version project from csproj/vbproj.
https://github.com/kzrnm/get-net-sdk-project-versions-action

Last synced: 26 days ago
JSON representation

get .NET SDK version project from csproj/vbproj.

Awesome Lists containing this project

README

        

# Get .NET SDK Project Versions

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`

**Required** csproj/vbproj path.

## 出力
### `version`

``
### `version-prefix`

``
### `version-suffix`

``
### `package-version`

``
### `assembly-version`

``
### `file-version`

``
### `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