Microsoft.CognitiveServices.Speech.Core.dll not found when using the Speech SDK in a VS Extensibility Project
See original GitHub issueSimilar to a few other issues reported:
- https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/619
- https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/132
I am having a problem using the Speech SDK when I use it in a Visual Studio extensibility project. I copied the code from the documentation’s quick start and used it in a .NET Core Console App and it works. I notice that the file Microsoft.CognitiveServices.Speech.Core.dll
appears in the bin
folder for the application.
However, when I build the VSIX from my Extensibility project, the Microsoft.CognitiveServices.Speech.Core.dll
does not appear in the extension’s folder, but a similarly-named file, Microsoft.CognitiveServices.Speech.csharp.dll
does appear there. I’ve tried manually referencing the DLL rather than the NuGet package, but this doesn’t provide a good workaround and the errors still occur.
CC @achandmsft and @scottaddie as we were chatting about this together. Also @madskristensen, who may have additional context.
Issue Analytics
- State:
- Created 7 months ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
Hi @bradygaster, this could be a problem with how the runtimes are discovered and packaged when building the VSIX. The
Microsoft.CognitiveServices.Speech.csharp
dll contains the bindings for the library and theMicrosoft.CognitiveServices.Speech.core
contains the implementation. Both the implementation dll and the binding need to be copied into the package (for all of the architectures supported) I’m not familiar with how VSIX are packaged but I’ll try to take a look at it to understand how nuget runtimes are packaged.@frank-vanderhulst Here you go:
https://stackoverflow.com/questions/75616169/unable-to-load-dll-microsoft-cognitiveservices-speech-core-dll-could-not-be-f#answer-75623332
It might pay to read the comments, too.