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

Unable to install FSharp.Configuration NuGet package into an F# project, works OK with C# #56

Closed object closed 2 years ago

object commented 9 years ago

If I create a new F# library project using VS 2013 and try to install FSharp.Configuration NuGet package, I am getting the following error:

PM> install-package FSharp.Configuration Installing 'FSharp.Configuration 0.5.0'. Successfully installed 'FSharp.Configuration 0.5.0'. Adding 'FSharp.Configuration 0.5.0' to Library1. No exact match found for removing reference 'SharpYaml'. Trying case-insensitive search... Failed to find match for removing reference 'SharpYaml'. Uninstalling 'FSharp.Configuration 0.5.0'. Successfully uninstalled 'FSharp.Configuration 0.5.0'. Install failed. Rolling back... install-package : Failed to add reference to 'SharpYaml'. At line:1 char:1

If I create an empty C# library project, then everything works fine.

vasily-kirichenko commented 9 years ago

Cannot reproduce it.

On a blank F# console app:

PM> Install-Package FSharp.Configuration
Installing 'FSharp.Configuration 0.5.1'.
Successfully installed 'FSharp.Configuration 0.5.1'.
Adding 'FSharp.Configuration 0.5.1' to FSharp.Configuration.Sandbox.
Successfully added 'FSharp.Configuration 0.5.1' to FSharp.Configuration.Sandbox.

On a F# library:

PM> Install-Package FSharp.Configuration
'FSharp.Configuration 0.5.1' already installed.
Adding 'FSharp.Configuration 0.5.1' to Lib.
Successfully added 'FSharp.Configuration 0.5.1' to Lib.
vikranthc commented 9 years ago

I have the same issue