You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a desktop application in which i am trying to integrate whisper .net library . The project is based on .net framework 4.7.2 and WPF . Visual studio 2019 is used
After adding the project from nugget when i try to add sample code in the project in the following line i get an compilation error .
await foreach (var result in processor.ProcessAsync(fileStream))
{
Console.WriteLine($"{result.Start}->{result.End}: {result.Text}");
}
The error is The type 'IAsyncEnumerable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
after doing some research i found that IAsyncEnumerable is part of .net core sdk . to use it for framework version i need to use Microsoft.Bcl.AsyncInterfaces package . even after installing it the error is still there . i have also .net core installed in the sytem and also tried with chaning c# language version from 7.3 to 8.0 . error is still there
I have successfully build sample project which is based on .net core .
So my question is , is this library .net framework compatible or .net core is must ?
The text was updated successfully, but these errors were encountered:
This is supported with netstandard2.0 and as shown here, for this you'll have 2 transient dependencies:
Microsoft.Bcl.AsyncInterfaces version 7.0.0
System.Memory version 4.5.1
I suspect you are not using the SDK-style of csproj which is automatically resolving transient dependencies, but using the old csproj style where you have to manually reference all the transient dependencies.
For quick fix, just install those 2 as well, but I really recommend you switch to SDK-stlyle csproj (even if keeping net framework for now).
Hello there . Greeting
I have a desktop application in which i am trying to integrate whisper .net library . The project is based on .net framework 4.7.2 and WPF . Visual studio 2019 is used
After adding the project from nugget when i try to add sample code in the project in the following line i get an compilation error .
The error is The type 'IAsyncEnumerable<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Bcl.AsyncInterfaces, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
after doing some research i found that IAsyncEnumerable is part of .net core sdk . to use it for framework version i need to use Microsoft.Bcl.AsyncInterfaces package . even after installing it the error is still there . i have also .net core installed in the sytem and also tried with chaning c# language version from 7.3 to 8.0 . error is still there
I have successfully build sample project which is based on .net core .
So my question is , is this library .net framework compatible or .net core is must ?
The text was updated successfully, but these errors were encountered: