MTOUCH:错误MT0009:加载程序集时出错:grpc_csharp_ext.x64.dll(MT0009)

MTOUCH:错误MT0009:加载程序集时出错:grpc_csharp_ext.x64.dll(MT0009),dll,compiler-errors,assemblies,compiler-warnings,visual-studio-mac,Dll,Compiler Errors,Assemblies,Compiler Warnings,Visual Studio Mac,我在使用Visual Studio for Mac和iOS项目时遇到生成错误。它也出现在Mac上的Android项目和Windows 10上Visual Studio 2019的iOS项目中 我能够在iPhone8上运行这个项目,当时它是“干净的”,在我把任何代码放进去之前 以下是错误: /Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/MTOUCH: Error MT0009: Error while lo

我在使用Visual Studio for Mac和iOS项目时遇到生成错误。它也出现在Mac上的Android项目和Windows 10上Visual Studio 2019的iOS项目中

我能够在iPhone8上运行这个项目,当时它是“干净的”,在我把任何代码放进去之前

以下是错误:

/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/MTOUCH: Error MT0009: Error while loading assemblies: /Users/shinehah/.nuget/packages/grpc.core/1.18.0/runtimes/win/native/grpc_csharp_ext.x64.dll (MT0009) (iOSAppSpeechToText01)
以下是警告:

/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "System.Numerics" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "Microsoft.CSharp" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3277: Found conflicts between different versions of "System.Net.Http" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. (MSB3277) (iOSAppSpeechToText01)
/Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(5,5): Warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the "AutoGenerateBindingRedirects" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190. (MSB3276) (iOSAppSpeechToText01)
/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/ViewController.cs(33,33): Warning CS1701: Assuming assembly reference 'Google.Protobuf, Version=3.4.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' used by 'Google.LongRunning' matches identity 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' of 'Google.Protobuf', you may need to supply runtime policy (CS1701) (iOSAppSpeechToText01)
/Users/shinehah/VSProjects/iOSAppSpeechToText01/iOSAppSpeechToText01/ViewController.cs(29,29): Warning CS1701: Assuming assembly reference 'Google.Protobuf, Version=3.4.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' used by 'Google.LongRunning' matches identity 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' of 'Google.Protobuf', you may need to supply runtime policy (CS1701) (iOSAppSpeechToText01)
该错误最后发生在警告之后

我没有添加任何代码。唯一的区别是我安装了Google.Cloud.Speech.V1

这就是我在一个新的清洁项目后改变的一切


我曾尝试使用Google.Cloud.Speech.V1 1.0.1软件包而不是1.1.0,但我也遇到了同样的错误。

如果你是在Iphone 8上开发的,你有什么理由想使用Google Cloud Speech在C#/.net中编写文本,而不是使用苹果自己的语音API?我怀疑你会有很多Mono的疑难解答(你的问题乍一看像是Mono的配置问题)。@paisanco我不知道苹果有语音到文本的API。它叫什么?@paisanco我找到了。这叫演讲。哼!如果你是在iPhone8上开发的,你有没有理由想使用谷歌云语音来在C#/.net中编写文本,而不是使用苹果自己的语音API?我怀疑你会有很多Mono的疑难解答(你的问题乍一看像是Mono的配置问题)。@paisanco我不知道苹果有语音到文本的API。它叫什么?@paisanco我找到了。这叫演讲。哼!