Skip to content

kzrnm/get-net-sdk-project-versions-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Get .NET SDK Project Versions

This action gets versions from csproj/vbproj.

test

Usage

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

version-prefix

<VersionPrefix>

version-suffix

<VersionSuffix>

package-version

<PackageVersion>

assembly-version

<AssemblyVersion>

file-version

<FileVersion>

informational-version

<InformationalVersion>

Reference