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

Version 0.43 from nuget rasie null reference error while using AppSettings #37

Closed casbby closed 9 years ago

casbby commented 9 years ago

Hi,

After revert back to version 0.22, the issue went away.

Regards Casbby

vasily-kirichenko commented 9 years ago

Could you supply a minimal repro?

I do the following on current master brach:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="setting19" value="1"/>
    <add key="setting26" value="s"/>
  </appSettings>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
  </startup>
</configuration>
type App = AppSettings<"App.config">

[<EntryPoint>]
let main argv = 
    printfn "setting1 = %d, setting2 = %s" App.Setting19 App.Setting26
    App.Setting19 <- 22
    0

And everything works ok.

casbby commented 9 years ago

Hi All,

I am really for the incorrect report. i am simply over fatigued and didn't do a thorough debug. It was working fine when i tried to reproduce the error this morning.

Regards Casbby