Skip to content

Microsoft.Bcl.AsyncInterfaces missing for netcoreapp3.1 #823

@AbeniMatteo

Description

@AbeniMatteo

Version

5.0.0

Expected behavior

No expection.

Actual behavior

Exception thrown:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in repro.dll
Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

To Reproduce

repro.csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="SimpleInjector" Version="5.0.0" />
  </ItemGroup>
</Project>

program.cs

namespace repro
{
    static class Program
    {
        static void Main() => LoadSimpleInjector();
        static void LoadSimpleInjector() => new SimpleInjector.Container();
    }
}

Additional context

For .NET Core apps, IAsyncDisposable is declared in System.Runtime.dll and Microsoft.Bcl.AsyncInterfaces is also not listed as a Nuget package dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions