即使先决条件不可用,也允许安装 Microsoft.Speech dll
我有一个应用程序,可以选择从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这会起作用,但尚未能够测试:
在发布中->应用程序文件将 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
你需要这样做,这对我有用。
从以下位置导入 Microsoft.Speech.dll:
You need to do this, which works for me.
Import Microsoft.Speech.dll from the following location: