gpt4 book ai didi

c# - 使用 Google Voice API 编译 C# .NET 应用程序

转载 作者:太空狗 更新时间:2023-10-30 01:24:40 25 4
gpt4 key购买 nike

因此,通过搜索互联网,我设法找到了一个明显有效的“Google Voice API”。这太棒了!我正在开发一个应用程序,它可以检测服务器进程何时崩溃/出错,然后通过文本通知我。它真的很有用,因为服务器并不完全可靠,有时需要重置,有时我懒得从沙发上起来/忙着做其他事情。

无论如何,API:

http://sourceforge.net/projects/gvoicedotnet/

我添加了 dll 作为引用,所有内容都通过 intellisense 加载得很好。我将 dll 添加到我的 .cs 中(使用 using [哈哈])。添加所有内容后,我决定编译以确保它可以编译,当然它没有。

错误:

Error 201 The type or namespace name 'Google' could not be found (are you missing a using directive or an assembly reference?)

无论如何,出于某种原因,在每次编译时它都会删除 dll 作为引用?唯一似乎有点像一个指标(我怀疑是否涉及)的是这个警告

The referenced assembly "Google.Voice.Service, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

tl;dr 引用会自动变为未引用。

最佳答案

您需要将目标框架更改为完整的 .Net 4 框架,然后添加对 System.Web 的引用。

关于c# - 使用 Google Voice API 编译 C# .NET 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8736782/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com