gpt4 book ai didi

c# - 如何修复 "error CS0656: Missing compiler required member ' Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'"

转载 作者:行者123 更新时间:2023-12-04 17:31:21 25 4
gpt4 key购买 nike

我想在 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):warning CS0618: 'Credential.ApiKey' is obsolete: 'Authentication using legacy apikey is deprecated. Please authenticate using TokenOptions.'

Assets\unity-sdk-core-1.2.0\Connection\RESTConnector.cs(664,24): error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'





Assets\unity-sdk-core-1.2.0\Authentication\CloudPakForData\CloudPakForDataAuthenticator.cs(35,31): warning CS0414: The field 'CloudPakForDataAuthenticator.UrlSuffix' is assigned but its value is never used



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

谢谢你。

最佳答案

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

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

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

关于c# - 如何修复 "error CS0656: Missing compiler required member ' Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create'",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59361585/

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