即使先决条件不可用,也允许安装 Microsoft.Speech dll

发布于 2024-11-15 03:46:57 字数 586 浏览 5 评论 0原文

我有一个应用程序,可以选择从 Microsoft 服务器语音平台提取 TTS 语音。如果平台尚未安装(通过 ClickOnce),应用程序应正常继续。然而,就目前情况而言,如果缺少这个,整个应用程序将无法安装。这似乎是在调用任何内容之前自动从 dll 中生成的。帮助!

可以在此处找到带有 Microsoft.Speech.dll 的 SDK:http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1b1604d3-4f66-4241-9a21-90a294a5c9a4

错误是“需要系统更新:无法安装或运行应用程序需要将程序集 Microsoft.Speech 版本 10.1.0.0 安装在全局程序集缓存 (GAC) 中 第一的”。同样,目标是允许应用程序安装,即使尚未安装 Microsoft.Speech。

在先决条件的 ClickOnce 选项中,该选项不存在,它似乎来自 dll。

I have an application which should optionally pull TTS voices from Microsoft Server Speech Platform. If the Platform has not been installed (via ClickOnce), the application should gracefully continue. However, as it stands, the whole application fails to install if this is missing. This seems to come automatically from the dll before anything is even called. Help!

The SDK with Microsoft.Speech.dll can be found here: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=1b1604d3-4f66-4241-9a21-90a294a5c9a4

The error is "System Update Required: Unable to install or run the application requires that assembly Microsoft.Speech Version 10.1.0.0 be installed in the Global Assembly Cache (GAC) first". Again, the goal is to allow the application to install even Microsoft.Speech has not yet been installed.

In the ClickOnce Options for Prerequisites this is not present, it seems to be coming from the dll.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆那么伤 2024-11-22 03:46:57

我相信这会起作用,但尚未能够测试:

在发布中->应用程序文件将 Microsoft.Speech.dll 的发布状态设置为“排除”或“包含”。

关键位于 ClickOnce 清单中,它没有隐藏在 dll 中。

让我知道这是否有效

I believe this will work, but have not been able to test:

In Publish -> Application Files set the publish status to 'Exclude' or 'Include' for Microsoft.Speech.dll

The key is in the ClickOnce Manifest, it's not hidden in a dll.

Let me know if this works

成熟稳重的好男人 2024-11-22 03:46:57

你需要这样做,这对我有用。

从以下位置导入 Microsoft.Speech.dll:

C:\Windows\assembly\GAC_MSIL\Microsoft.Speech\11.0.0.0__31bf3856ad364e35\Microsoft.Speech.dll

You need to do this, which works for me.

Import Microsoft.Speech.dll from the following location:

C:\Windows\assembly\GAC_MSIL\Microsoft.Speech\11.0.0.0__31bf3856ad364e35\Microsoft.Speech.dll
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文