【问题标题】:How to fix "error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'"如何修复“错误 CS0656:缺少编译器所需的成员 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'”
【发布时间】:2019-12-16 17:28:49
【问题描述】:

我想在 Unity (ver.2018.4.13) 上使用 IBM 的 Watson API SpeechToText。 首先,我正在阅读https://github.com/watson-developer-cloud/unity-sdk/blob/master/README.md 并尝试安装但控制台说

Assets\unity-sdk-core-1.2.0\Utilities\CredentialUtils.cs(268,70):警告 CS0618:'Credential.ApiKey' 已过时:'不推荐使用旧版 apikey 进行身份验证。请使用 TokenOptions 进行身份验证。'

Assets\unity-sdk-core-1.2.0\Connection\RESTConnector.cs(664,24):错误 CS0656:缺少编译器所需的成员“Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create”

Assets\unity-sdk-core-1.2.0\Authentication\CloudPakForData\CloudPakForDataAuthenticator.cs(35,31):警告 CS0414:已分配字段“CloudPakForDataAuthenticator.UrlSuffix”,但从未使用过其值

如何解决这些错误和警告。

谢谢。

【问题讨论】:

    标签: c# unity3d ibm-cloud ibm-watson


    【解决方案1】:

    您似乎没有使用最新的 Unity SDK 或核心。请从https://github.com/watson-developer-cloud/unity-sdk/releaseshttps://github.com/IBM/unity-sdk-core/releases下载最新的

    另外请将您的 API 兼容级别设置为 .NET 4.x

    https://github.com/watson-developer-cloud/unity-sdk#configuring-unity

    【讨论】:

      猜你喜欢
      • 2017-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-28
      • 2011-05-20
      • 2011-09-26
      • 1970-01-01
      • 2011-09-05
      相关资源
      最近更新 更多