-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0 #2084
Comments
Same issue here. Shouldn't need Microsoft.Bcl.AsyncInterfaces with dotnet 7 or later, but it's coming up for me when using blob storage health checks. |
Same problem here... :/ |
I could be wrong, but I upgraded to .NET 8 today (as much as I could). In doing so, I no longer needed a reference to this. Something must have updated it's dependency. I didn't take any additional time to investigate. |
🦖 Didn't know it was already out! Well, I will test it and see what happens. |
@blogcraft - Today is .NET 8 Release Day. https://www.dotnetconf.net/ |
Microsoft.Bcl.AsyncInterfaces dependency is a known PITA. |
Additional info here #1724 (comment) and below. |
This ensures that when libraries and apps who depend on the HealthChecks libraries get the correct transitive dependences for .NETCoreApp TFMs (for example Microsoft.Bcl.AsyncInterfaces). This follows the following [guidance](https://learn.microsoft.com/dotnet/standard/library-guidance/cross-platform-targeting): ✔️ CONSIDER multi-targeting even if your source code is the same for all targets, when your project has any library or package dependencies. Fix #2180 Fix #2084 Fix #2163
* Ensure all HealthChecks libraries have a .NETCoreApp TFM. This ensures that when libraries and apps who depend on the HealthChecks libraries get the correct transitive dependences for .NETCoreApp TFMs (for example Microsoft.Bcl.AsyncInterfaces). This follows the following [guidance](https://learn.microsoft.com/dotnet/standard/library-guidance/cross-platform-targeting): ✔️ CONSIDER multi-targeting even if your source code is the same for all targets, when your project has any library or package dependencies. Fix #2180 Fix #2084 Fix #2163 * Add [SupportedOSPlatform] to the HealthChecks.System.approved.txt --------- Co-authored-by: Adam Sitnik <[email protected]>
Please, fill the following sections to help us fix the issue
What happened:
What you expected to happen:
I shouldn't need to manually add a reference to Microsoft.Bcl.AsyncInterfaces v7.0.0.0.
How to reproduce it (as minimally and precisely as possible):
Add a health check for Azure Blob Storage.
Here are my package references:
Source code sample:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: