Set the version in all the AssemblyInfo.cs or AssemblyInfo.vb files in any subdirectory. For use with .NET Full Framework projects.
- name: Set version on AssemblyInfo.cs
uses: dannevesdantas/set-version-assemblyinfo-win@v1.0.0
with:
version: '3.2.0'
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'
This GitHub Action is compatible with Windows based runners only.
Thanks cheeso for providing the PowerShell SetVersion.ps1 script at MSDN Blogs, still available at Wayback Machine.
The scripts and documentation in this project are released under the MIT License