fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

Fix for #79: Ability to change the configured software #80

Closed Thorium closed 8 years ago

Thorium commented 8 years ago

Now you can actually use AppSettingsProvider from *.fsx scripts and F# Interactive. This is example code:

    #I @"./../packages/FSharp.Configuration/lib/net40"
    #r @"./../packages/FSharp.Configuration/lib/net40/FSharp.Configuration.dll"
    #r "System.Configuration.dll"

    type Settings = FSharp.Configuration.AppSettings<"app.config">

    let path = System.IO.Path.Combine [|__SOURCE_DIRECTORY__ ; "bin"; "myProject.exe" |]

    Settings.SelectExecutableFile path

    Settings.MyProperty
Thorium commented 8 years ago

This is not the first build to have Travis broken.

Ping #79

vasily-kirichenko commented 8 years ago

Thanks for contribution! Could you add some tests?

Thorium commented 8 years ago

I will but this needs a bit more work as the tests seems to run in parallel and the current AppConfigProvider doesn't handle multiple parallel providers. Also I had to fix the path resolution to type constructor to work also with Mono if you ever plan to get both Travis and AppVeyor to run unit tests.

Thorium commented 8 years ago

I think this would be ready for merge. Or is there something else still?

forki commented 8 years ago

please rebase on master - I fixed the underlying travis issue.

Thorium commented 8 years ago

This is also workaround for issue #16

vasily-kirichenko commented 8 years ago

Published in 0.5.8