The GUID of the VSPackage that implements the Custom Settings Point. This value is obtained from the objectNameResourceID argument to the ProvideProfileAttribute constructor. The key can be empty, or it can contain the reference ID to the localized string in a satellite DLL. The key's name,, is the unlocalized name of the Custom Settings Point.įor implementations based on MPF, the key's name is obtained by combining the categoryName and objectName arguments of the ProvideProfileAttribute constructor into categoryName_objectName. HKLM\Software\Microsoft\VisualStudio\ \UserSettings\ The structure of the registry entry is illustrated below: For more information, see Command-Line Switches. The root path of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\ can be overridden with an alternate root when the Visual Studio integrated development environment (IDE) is initialized. Consequently, a settings implementing class can support more than one settings category.Ĭustom Settings Point Registry Entry DetailsĬustom Settings Points are created in a registry entry in the following location: HKLM\Software\Microsoft\VisualStudio\ \UserSettings\, where is the name of the Custom Settings Point the VSPackage supports and is the version of Visual Studio, for example 8.0. If a single VSPackage supports several Custom Settings Points, each Custom Settings Point is implemented by a separate class, and each is registered by a unique instance of the ProvideProfileAttribute class. For more information, see Creating Registrar Scripts.Ĭode that uses the Managed Package Framework (MPF) should create Custom Settings Points by attaching a ProvideProfileAttribute to the VSPackage for each Custom Settings Point. Implementations of settings that are based on interop assemblies (using the IVsUserSettings interface) should create Custom Settings Point by either editing the registry or using a Registrar script (.rgs file). A VSPackage can support multiple settings categories, each defined by a Custom Settings Point. To enable this persistence, you use the settings APIs in the Visual Studio SDK.Ī registry entry that is referred to as a Custom Settings Point and a GUID defines a VSPackage's settings category. A VSPackage may define one or more settings categories, which are groups of state variables that persist when a user chooses the Import/Export Settings command on the Tools menu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |