Skip to content

CodingWithCalvin/GHA-VSVsixVersioner

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

Visual Studio VSIX Versioner

Build GitHub release License: MIT

🏷️ Version your Visual Studio extensions automatically based on date and build number!

This GitHub Action updates your Visual Studio extension to a version based on the current date and CI build number.

🚀 Usage

You can use the Visual Studio VSIX Versioner GitHub Action by configuring a YAML-based workflow file, e.g. .github/workflows/deploy.yml.

⚠️ Note: This action requires your extension to utilize the VSIX Synchronizer model for managing the version in the source.extension.vsixmanifest and the source.extension.cs code-behind file that is automatically synchronized.

Other versioning styles will be supported in the future.

⚠️ Note: This action only works on a Windows-based runner.

📥 Inputs

Input Required Description
extension-manifest-file Yes Path to your source.extension.vsixmanifest file
extension-source-file Yes Path to the source file generated from the manifest (using VSIX Synchronizer)
build-number No Build number to use for versioning (defaults to run_number)

📋 Example

Version the VSIX before building:

steps:
  - name: Checkout
    uses: actions/checkout@v4

  - name: Visual Studio VSIX Versioner
    uses: CodingWithCalvin/GHA-VSVsixVersioner@v2
    with:
      # REQUIRED
      extension-manifest-file: './src/MyExtension/source.extension.vsixmanifest'
      extension-source-file: './src/MyExtension/source.extension.cs'

      # OPTIONAL
      build-number: ${{ github.run_number }}

👥 Contributors

CalvinAllen

📄 License

MIT License - see LICENSE for details.


Made with ❤️ by Coding With Calvin

About

GitHub Action to version Visual Studio extensions (VSIX)

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •