Skip to content

Extend VSIX InstallationTarget range to support Visual Studio 2026#2

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/update-microsoft-visual-studio-support
Draft

Extend VSIX InstallationTarget range to support Visual Studio 2026#2
Copilot wants to merge 2 commits intomasterfrom
copilot/update-microsoft-visual-studio-support

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 18, 2026

The extension's installation range [17.0,19.0] excludes Visual Studio 2026 (version 18.x). Widening the upper bound to 20.0 covers VS 2026 while retaining full VS 2022 support.

Change

source.extension.vsixmanifest

<!-- Before -->
<InstallationTarget Version="[17.0,19.0]" Id="Microsoft.VisualStudio.Community">

<!-- After -->
<InstallationTarget Version="[17.0,20.0]" Id="Microsoft.VisualStudio.Community">

No changes to .csproj, NuGet packages, or C# code are required — the existing .NET 4.8 target, VS SDK packages, and AsyncPackage-based implementation are forward-compatible with VS 2026.

Original prompt

Problem

The VersionUp.V2 extension is currently limited to Visual Studio versions [17.0, 19.0), which may not be compatible with Visual Studio 2026 (version 18.0+). The extension needs to be updated to support newer Visual Studio versions including VS 2026.

Required Changes

1. VSIX Manifest Update

File: VersionUp.V2/source.extension.vsixmanifest

  • Current: <InstallationTarget Version="[17.0,19.0]"
  • Update to: <InstallationTarget Version="[17.0,20.0]" to support VS 2026

2. Project File Updates

File: VersionUp.V2/VersionUp.V2.csproj

  • Target Framework: Consider upgrading from .NET Framework 4.8 to .NET Framework 4.8 (minimum required) or support for newer .NET versions
  • Ensure all SDK references are compatible with VS 2026

3. NuGet Package Verification

Verify that the following packages support VS 2026:

  • Microsoft.VSSDK.BuildTools: 17.5.4065
  • Microsoft.VisualStudio.Threading: 17.5.22
  • Microsoft.VisualStudio.SDK.Analyzers: 16.10.10
  • Microsoft.VsSDK.CompatibilityAnalyzer: 17.5.4065

4. Code Review

File: VersionUp.V2/ContextMenu.cs

  • Verify async/await patterns are correctly implemented
  • Ensure all VS Shell API usage is compatible with newer VS versions
  • Check EnvDTE usage for any deprecation warnings

Expected Outcome

After these changes, VersionUp.V2 should be installable and functional on:

  • Visual Studio 2022 (17.0-17.x)
  • Visual Studio 2026 (18.0+)

Testing Recommendations

  1. Build in Release mode
  2. Test VSIX generation
  3. Verify installation capability on VS 2026
  4. Test all four version increment commands (Major, Minor, Build, Revision)

The following is the prior conversation context from the user's chat exploration (may be truncated):

User: Schaue meine Repository VersionUp.V2 und analysiere den Code für die Verwendung unter VS 2026

Assistant: Ich werde dir die Repository VersionUp.V2 analysieren und den Code untersuchen.

Assistant: Lass mich mehr Details über die Dateien im Repository abrufen:

Assistant: ## 📊 Analyse: VersionUp.V2 Repository für Visual Studio 2026

Ich habe dein Repository analysiert. Hier ist eine detaillierte Übersicht:

🔍 Repository-Übersicht

  • Sprache: C#
  • Typ: Visual Studio Extension (VSIX)
  • Lizenz: MIT
  • Letzte Aktualisierung: 7. März 2023

⚙️ Technische Spezifikationen

Projekt-Konfiguration (.csproj)

✓ Target Framework:     .NET Framework 4.8
✓ Output Type:          Library (DLL)
✓ Visual Studio SDK:    Version 17.5.4065
✓ Assembly Signing:     Ja (Key.snk)

VS 2026 Kompatibilität - WICHTIGE ERKENNTNISSE

Die source.extension.vsixmanifest zeigt:

<InstallationTarget Version="[17.0,19.0]" Id="Microsoft.VisualStudio.Community">
    <ProductArchitecture>amd64</ProductArchitecture>
</InstallationTarget>

⚠️ Kompatibilitätsproblem: VS 2026 hätte die Versionsnummer 18.0 oder höher. Diese Extension ist auf [17.0, 19.0) limitiert, was möglicherweise nicht mit VS 2026 kompatibel ist.


📋 Projektstruktur

Hauptdateien:

  • ContextMenu.cs - Command Handler für Kontextmenü (11 KB)
  • ContextMenuPackage.cs - VS Package Implementierung
  • ContextMenuPackage.vsct - Menu & Command Table Definition
  • GeneralSettings.Designer.cs - Einstellungen
  • VSPackage.resx - Ressourcen

Assets:

  • Icons: VersionUpV2_256x256.ico, VersionUpV2_64x64.png
  • Doku: index.html, stylesheet.css

🎯 Was macht diese Extension?

Laut Beschreibung:

"Increase the assembly version of the selected project in the solution via context menu."

Funktionsweise (basierend auf ContextMenu.cs):

  • 4 Versionstypen-Befehle:

    • Major (0x0100)
    • Minor (0x0200)
    • Build (0x0300)
    • Revision (0x0400)
  • Nutzt EnvDTE (Visual Studio Object Model)

  • Async/Await Pattern für VS Shell-Integration

  • Singleton-Pattern für Instanz-Management


🔴 Empfehlungen für VS 2026-Kompatibilität

Notwendige Änderungen:

  1. VSIX Manifest aktualisieren:

    <!-- Aktuell: [17.0,19.0) -->
    <!-- Sollte sein: [17.0,20.0) oder [17.0,) für offenen Range -->
    <InstallationTarget Version="[17.0,20.0)" Id="Microsoft.VisualStudio.Community">
  2. NuGet Packages überprüfen:

    • Microsoft.VSSDK.BuildTools: 17.5.4065
    • Microsoft.VisualStudio.Threading: 17.5.22
    • Diese sollten VS 2026 unterstützen oder aktualisiert werden
  3. .NET Framework testen:

    • Zielframework .NET 4.8 ist veraltet
    • Erwägen: .NET 8.0 oder höher für moderne VS Versionen
  4. SDK Update prüfen:

    • Visual Studio SDK Version 17.5.4065 sollte mit VS 2026 kompatibel sein
    • Aber offizielle VS 2026 SDK Versionen verwenden

Was gut aussieht

  • ✅ Modernes async/await Pattern
  • ✅ Proper Null-Checking
  • ✅ Assembly Signing implementiert
  • ✅ Settings-System vorhanden
  • ✅ Responsive UI (Async Operations)

Möchtest du, dass ich einen Pull Request mit den Aktualisierungen für VS 2026-Kompatibilität er...

This pull request was created from Copilot chat.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…0,20.0])

Co-authored-by: romanjetich <38476303+romanjetich@users.noreply.github.com>
Copilot AI changed the title [WIP] Update VersionUp.V2 extension for Visual Studio 2026 support Extend VSIX InstallationTarget range to support Visual Studio 2026 Mar 18, 2026
Copilot AI requested a review from romanjetich March 18, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants