This action gets versions from csproj/vbproj.
- 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}}"
Required csproj/vbproj path.
<Version>
<VersionPrefix>
<VersionSuffix>
<PackageVersion>
<AssemblyVersion>
<FileVersion>
<InformationalVersion>