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.
Version
5.0.0
Expected behavior
No expection.
Actual behavior
Exception thrown:
To Reproduce
repro.csproj
program.cs
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.