Based on this answer, I added keys to Visual Studio 2017 and it worked just fine. But it doesn't work for Visual Studio 2019.
Here's what I do:
- I create a new project, using VSIX project template
- I add a
.pkgdeffile to it, and I populate it using these lines:[$RootKey$\TeamFoundation\SourceControl\Checkin Policies] "ExampleKey"="ExampleValue" - I modify
source.extension.vsixmanifestfile and add assemblies and packages to it (based on that answer, and just like VS2017) - I make sure my extension is unsintalled (VS2019 => Extension => Manage Extensions => Selecting my extension => Uninstall => Closing VS2019)
- Then I make sure the
ExampleKey ExampleValueis not present inprivateregistry.bin. (Openingregedit.exe, selectingHKEY_LOCAL_MACHINE=> File => Load hive =>%localappdata%\Microsoft\VisualStudio\16.0_e880ebae\privateregistry.binas VS2019Registry, then selectingVS2019Registry\Software\Microsoft\VisualStudio\16.0_e880ebae_Config\TeamFoundation\SourceControl\Checkin Policies) - Then I unload the
VS2019Registryhive. - Then I double click my extension, and install it on VS2019
- Then I open VS2019 to make sure my extension is installed, and it's in the list of extensions.
- Then I close VS2019, and reopen private registry, but my key is not added to the intended path.
What should I do? How can I debug it? The exact same path was working for VS2017.