Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.49 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.49 KB

Set version on AssemblyInfo.cs GitHub Action for Windows runners

Set the version in all the AssemblyInfo.cs or AssemblyInfo.vb files in any subdirectory. For use with .NET Full Framework projects.

Usage

- name: Set version on AssemblyInfo.cs
  uses: dannevesdantas/set-version-assemblyinfo-win@v1.0.0
  with:
    version: '3.2.0'

Specifying folder path

You can specify an optional folder path to search for AssemblyInfo.cs/.vb files. The default value is ${{ github.workspace }}

- name: Set version on AssemblyInfo.cs
  uses: dannevesdantas/set-version-assemblyinfo-win@v1.0.0
  with:
    version: '3.2.0'
    path: '${{ github.workspace }}/MyProject/App'

Requirements

This GitHub Action is compatible with Windows based runners only.

Credits

Thanks cheeso for providing the PowerShell SetVersion.ps1 script at MSDN Blogs, still available at Wayback Machine.

License

The scripts and documentation in this project are released under the MIT License