question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.CognitiveServices.Speech.Core.dll not found when using the Speech SDK in a VS Extensibility Project

See original GitHub issue

Similar to a few other issues reported:

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:closed
  • Created 7 months ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
glecaroscommented, Feb 10, 2023

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 the Microsoft.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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load DLL "Microsoft.CognitiveServices.Speech. ...
I have a console application that I made in Visual Studio 2022, using C#, .NET Framework 4.8.1, and the Azure Cognitive Services Speech...
Read more >
Problem including a dll that includes Microsoft. ...
The build output directory contains ClassLibrary1.dll and all Microsoft.CognitiveServices.Speech dlls from the NuGet package. Create another new ...
Read more >
Unable to load DLL "Microsoft.CognitiveServices.Speech. ...
CognitiveServices.Speech.core.dll' could not be loaded. Please make sure that the file is accessible, and that it is a valid assembly or COM ...
Read more >
Microsoft.CognitiveServices.Speech.core.dll : Free Download
Download and install Microsoft.CognitiveServices.Speech.core.dll to fix missing or corrupted DLL errors. Free, Safe and Secure.
Read more >
Assembly reference on Microsoft.CognitiveServices. ...
Hello everyone, i'm currently trying to include the Speech to text Cognitive service to my Unity project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found