Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.55 KB

File metadata and controls

56 lines (39 loc) · 1.55 KB

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