mrbrl / PCLAppConfig

Xamarin.Forms PCL App.Config Manager
Apache License 2.0
21 stars 10 forks source link

PCLAppConfig

CI on Push and Pull Request

Xamarin.Forms .Net Standard:

- PCL AppConfig : cross platfom xamarin forms app settings reader

Usage

FOR FILE SYSTEM APP.CONFIG

    ConfigurationManager.Initialise(PCLAppConfig.FileSystemStream.PortableStream.Current);

FOR EMBEDDED APP.CONFIG

    Assembly assembly = typeof(App).GetTypeInfo().Assembly;
    ConfigurationManager.Initialise(assembly.GetManifestResourceStream("DemoApp.App.config"));  
<configuration>
    <appSettings>
        <add key="config.text" value="hello from app.settings!" />
    </appSettings>
</configuration>
    ConfigurationManager.AppSettings["config.text"];

Author

Contributors

Roadmap

Comments and suggestions are welcomed!