Share via

Visual Studio 2026 Extension Management Configuration

James Scott Jr 5 Reputation points
2026-04-27T20:57:43.56+00:00

I'm trying to configure Visual Studio 2026 via script to include in a GPO, that adds our internal Private Repository as the only available source of Extensions.

So far, my attempts to use the previous pkgdef method does not seem to work for VS 2026.

Does anyone know or had success implementing something like this for 2026?

Thanks,

-JS

Developer technologies | Visual Studio | Extensions
0 comments No comments

1 answer

Sort by: Most helpful
  1. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 2,195 Reputation points Microsoft External Staff
    2026-04-29T00:58:37.93+00:00

    Thanks for reaching out!

    Lock down for VS 2026 to use your private feed by scripting the same registry keys that the “Manage Extension Sources” UI writes to. Here’s a sketch of what that looks like:

    Identify the right registry hive

    • VS 2026 is a 32-bit process, so the keys live under

    HKLM\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\18.0\ExtensionManager

    Push your feed URL into EnabledExtensionSources (REG_MULTI_SZ)

    • Name: anything unique (e.g. “01_PrivateRepo”)

    • Value: the URL of your internal feed

    • Only include your private feed entries here; omitting the Marketplace entry effectively hides it

    Explicitly disable Marketplace by populating DisabledExtensionSources

    • Add the Marketplace feed’s description to DisabledExtensionSources

    Roll this out in your GPO as a Registry Preference targeting the above keys

    • You can also drop a .pkgdef in

    %ProgramFiles%\Microsoft Visual Studio\2026\Common7\IDE\Extensions\

    that mirrors those registry settings if you prefer PKGDEF over direct registry edits

    Sample .pkgdef snippet :

    [$RootKey$\ExtensionManager\EnabledExtensionSources]

    "01_PrivateRepo"="https://mycompany/vsixfeed"

    [$RootKey$\ExtensionManager\DisabledExtensionSources]

    "01_Marketplace"="Visual Studio Marketplace"

    Once that registry or .pkgdef is in place, restart VS 2026 and check Extensions go to Manage Extensions, next click Gear icon → “Manage Extension Sources” to confirm only your private feed appears.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.