runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Missing System.Configuration assembly

Open darkengines opened this issue 9 years ago • 5 comments

csproj

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.NotificationHubs" Version="1.0.8" />
    <PackageReference Include="Microsoft.Extensions.Configuration" Version="2.0.0-preview1-final" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.0.0-preview1-final" />
    <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.0.0-preview1-final" />
    <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.0-preview1-25305-02" />
  </ItemGroup>

Issue

This line:

NotificationHubClient = NotificationHubClient.CreateClientFromConnectionString(options.Value.ConnectionString, options.Value.HubPath);

Throws:

System.IO.FileNotFoundException : 'Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The file cannot be found.'

Did I miss something? No build error / warning.

darkengines avatar Jun 12 '17 16:06 darkengines

@ericstj There should be a System.Configuration shim which makes this work, right?

mellinoe avatar Jun 12 '17 18:06 mellinoe

@weshaggard added that recently post preview1. See https://github.com/dotnet/corefx/commit/e933ffe48451a5549b76d03a3ff6023a08be1cfa.

ericstj avatar Jun 12 '17 18:06 ericstj

@darkengines you can try the following:

<RuntimeFrameworkVersion>2.0.0-preview2-25407-01</RuntimeFrameworkVersion>

And make sure you have https://dotnet.myget.org/F/dotnet-core/api/v3/index.json registered as a feed.

ericstj avatar Jun 12 '17 18:06 ericstj

Passed ! Thank you.

darkengines avatar Jun 13 '17 08:06 darkengines

@darkengines Let us know if you hit any other issues.

mellinoe avatar Jun 13 '17 16:06 mellinoe