Open Closed

Updated from visual studio 2022 to 2026, Function Open in Visual studio stopped working #10452


User avatar
0
ydruck@greenwavecommissions.com created

Working with ABP Studio, due to .NET 10 changes needed to install 2026 studio, removed old studio 2022 However, Action "Open in visual studio" stopped working.

How to resolve this?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • This typically happens because ABP Studio still tries to launch Visual Studio via the old (VS 2022) registration/path, and after uninstalling VS 2022 there is no longer a valid “devenv”/shell association to open the solution.

    • Fix it by re-establishing the Windows “open with Visual Studio” registration:

      1. Repair Visual Studio 2026
        • Open Visual Studio Installer → select Visual Studio 2026 → More → Repair.
          This re-registers Visual Studio shell commands and file associations that tools like ABP Studio rely on.
      2. Re-associate .sln files with Visual Studio 2026 (important even if VS opens manually)
        • Right-click any *.sln file → Open with → Choose another app → pick Visual Studio 2026 → check Always use this app.
      3. Restart ABP Studio (close it completely and open again) and try “Open in Visual Studio”.
    • If it still doesn’t work, the remaining reliable workaround is:

      • Open the solution directly by double-clicking the .sln (after the association above), or open VS first and use File → Open → Project/Solution.

    Links (verified):

    • https://abp.io/docs/latest/studio
    • https://abp.io/docs/latest/studio/release-notes
    • https://abp.io/get-started

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ydruck@greenwavecommissions.com created

    Updated both .sln and .slnx association, repaired 2026 install, restarted studio. also ran "devenv /updateConfiguration"

    No success

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi,

    Thanks for the update.

    We checked the current ABP Studio behavior on our side. The Open with -> Visual Studio action does not use the Windows .sln / .slnx file association. ABP Studio looks for devenv.exe and launches Visual Studio directly. Because of that, updating the .sln and .slnx associations would not change this specific action.

    So, since you already:

    • repaired Visual Studio 2026,
    • restarted ABP Studio,
    • ran devenv /updateConfiguration,

    the most likely problem is that the Visual Studio registration/path ABP Studio relies on is not matching the current VS 2026 installation anymore.

    As the next step, please run these guidance-only troubleshooting checks in a normal terminal:

    Get-Item 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe'
    
    Get-Command devenv
    
    pwsh -Command "start devenv 'C:\full\path\to\your-solution.sln'"
    

    If your module uses a .slnx file, please test that file too.

    What these checks tell us:

    • If the registry key is missing or still points to the old VS 2022 path, that explains why ABP Studio cannot open Visual Studio correctly.
    • If Get-Command devenv fails, then devenv is not resolvable from the shell the way ABP Studio expects.
    • If the pwsh command also fails, the problem is outside the .sln association and is related to the Visual Studio shell/command registration.
    • If the command works but ABP Studio still does not open Visual Studio, then we need to look deeper into the Studio side.

    If it still persists, please share these 4 details:

    1. Your ABP Studio version.
    2. The output/result of the commands above.
    3. Whether the problem happens for both .sln and .slnx.
    4. Whether ABP Studio shows any notification/error when you click Open with -> Visual Studio.

    Also, please make sure you are testing with the latest ABP Studio version.

    As a temporary workaround, you can continue using Open with -> Explorer and open the .sln / .slnx file manually in Visual Studio.

    Best regards,

    ABP Support Team

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.