Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SIngle-file generator changes in Visual Studio 2017

I am trying to find information on single-file generator changes (especially how to register) in Visual Studio 2017. Any help would be really appreciated.

like image 899
Alex I Avatar asked Mar 08 '17 02:03

Alex I


1 Answers

I think the registration system is pretty much the same. You can find more details here

In Visual Studio 2017, the registry settings are stored in a private registry files.

This enables multiple installations of Visual Studio side by side, on the same machine.

However, these entries are no longer available in the global registry file.

Here is how to open such a file in regedit:

  • Close Visual Studio
  • Start Regedit.exe
  • Select the HKEY_LOCAL_MACHINE node
  • From the main menu, select File -> Load Hive... and select the private registry file. That file is stored in the Local App Data

    %localappdata%\Microsoft\VisualStudio\<config>\privateregistry.bin

    where <config> coresponds to the configuration hive you would like to use

  • It will prompt for a name - that represents the name that will be displayed under (e.g. IsolatedHive)
  • Now you should be able to browse the registry under the hive you created
  • Before launching Visual Studio, you need to unload it: From the main menu File -> Unload Hive before attempting to run VS (otherwise regedit keeps the file locked, and Visual Studio will fail to launch)
like image 131
Adrian Vinca Avatar answered Oct 03 '22 04:10

Adrian Vinca