PortableSettingsProvider is a C# implementation of
SettingsProvider for portable applications.
src/PortableSettingsProvider.csto your project.
For each setting that should be portable, set the
Providerproperty to the
PortableSettingsProviderclass, with a namespace qualifier if required. (By default this would be
crdx.Settings.PortableSettingsProvider, but feel free to change the namespace and/or class name as you wish.)
Optionally, set the
Truefor global settings, or
Falsefor local settings. (See File format below for an explanation.) Visual Studio currently defaults this to
Read and write your application settings as you normally would.
The application settings are stored in an XML file in the same directory as the application. The filename is the same as the application's executable, with the file extension
Two types of settings are supported: global (roaming) and local.
Global (aka "Roaming")
Global settings are not tied to the current machine and are available to all running instances of the application, regardless of where it's being run from.
Global settings are stored in the
Local settings are tied to the computer on which the application is running, using the computer name as the unique identifier.
Local settings are stored in the
Bugs or contributions