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

AppSettings not available #128

Open arunvalsan opened 6 years ago

arunvalsan commented 6 years ago

Hi,

Iam trying to use the AppSettings type provider in F#, for reading and writing to the app.config or web.config files.

Iam referencing the FSharp.Configuration 1.3.0 package with 'open FSharp.Configuration' and trying to access the app.config as below.

type Settings = AppSettings<"app.config">

But the AppSettings<"app.config"> gives me error saying AppSettings is not defined.

Can you please help me?

Cheers Arun

sergey-tihon commented 6 years ago

What is your .net version? OS? Could you try to use it from F# Script file?

arunvalsan commented 6 years ago

Iam using .net version 4.5 and windows OS

Iam currently trying to use from a .fs file.

Cheers Arun

Sent from my iPhone

On 8 Jul 2017, at 10:00, Sergey Tihon notifications@github.com wrote:

What is your .net version? OS? Could you try to use it from F# Script file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sergey-tihon commented 6 years ago

TBH, not idea, it may be module/namespace collision in your solution or something like that. Could you share repro solution somehow?