I'm trying a simple implementation of Microsoft.CognitiveServices.Speech in a .Net Framework class library.
I've followed the tutorials and help pages here:
When I run my solution, I get the error:
Could not load file or assembly 'Microsoft.CognitiveServices.Speech.csharp, Version=1.23.0.28,Culture=neutral,PublicKeyToken=d2e6dcccb609e663' or one of its dependencies. The system cannot find the file specified.
I didn't find a proper solution on SO because the issue is not with the implementation itself, but rather I probably have a reference/.dll/dependency issue. Not clear as to why though...
In my class library, I've installed the relevant NuGetPackage, and have all the references. I've also tried running the code in 'Any CPU' and 'x64' configurations, but that didn't effect anything.
I then tried just to run an example from the repo itself from this example: ..\CognitiveServicesSpeech\cognitive-services-speech-sdk\samples\csharp\dotnet-windows\speechtotext-naudio
and VS2022 didn't recognize the NuGetPackage and the dependencies. So I tried to 'restore' them in the NuGetPackage manager, but it wasn't able to.
Can't think of what else to try.. perhaps I need to somehow reset or reinstall the NuGetPackage manager? will that help..? Any other ideas are welcome! :) Thanks
