fsprojects / AzureStorageTypeProvider

An F# Azure Type Provider which can be used to explore Blob, Table and Queue Azure Storage assets and easily apply CRUD operations on them.
http://fsprojects.github.io/AzureStorageTypeProvider/
The Unlicense
84 stars 34 forks source link

System.Configuration.ConfigurationManager is not being resolved #122

Open xperiandri opened 5 years ago

xperiandri commented 5 years ago

Description

Error FS3033 The type provider 'ProviderImplementation.AzureTypeProvider' reported an error: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

Repro steps

<PackageReference Include="FSharp.Azure.StorageTypeProvider" Version="2.0.1" />
<PackageReference Include="FSharp.Control.FusionTasks" Version="2.0.2" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
type Azure = AzureTypeProvider<tableSchema = "Tables.json",
                               configFileName = "Storage.config",
                               connectionStringName = "Emulator">

config is the same as in sample

Expected behavior

System.Configuration.ConfigurationManager is resolved

Actual behavior

System.Configuration.ConfigurationManager is not resolved

Related information

isaacabraham commented 5 years ago

This does appear to be a binding redirect issue - can you try pinning Configuration Manager to 4.0.1?

xperiandri commented 5 years ago

The versnion of dll is 4.0.1 in that package