c# - Visual Studio c# 项目到 Monodevelop ResolveKeySource 错误
问题描述
我已经在 Windows 10 中使用 Visual Studio 2019 开发了 ac# 项目。现在我想在 Ubuntu 18.04 中将此项目与 Monodevelop 一起使用。我用 Monodevelop 打开项目并尝试构建它,但出现以下错误。我该如何解决?谢谢。
/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB4018: The "ResolveKeySource" task failed unexpectedly.
System.PlatformNotSupportedException: X509Certificate is immutable on this platform. Use the equivalent constructor instead.
at System.Security.Cryptography.X509Certificates.X509Certificate2.Import (System.String fileName, System.String password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags) [0x00000] in <2703bbaa0a6e4686b6033c2dddb1a363>:0
at Microsoft.Build.Tasks.ResolveKeySource.ResolveManifestKey () [0x000e4] in <f6dbc5d4497740418a0ffd4a9d5d751e>:0
at Microsoft.Build.Tasks.ResolveKeySource.Execute () [0x00008] in <f6dbc5d4497740418a0ffd4a9d5d751e>:0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00029] in <b695b16788dd418cbe8b4d98f7a92ff3>:0
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002a9] in <b695b16788dd418cbe8b4d98f7a92ff3>:0 (MSB4018) (register-programmer)
解决方案
推荐阅读
- opengl-es - 模型的某些部分在 OpenGL 中被奇怪地遮挡了
- java - 在每个服务实现的数据库中链接 Java 微服务中的数据
- javascript - 打字稿中两个日期之间的天数列表
- php - 根据id从mongodb中的嵌套数组中删除数组
- c# - ConcurrentDictionary 到 IQueryable
- 线程安全 - mysql - 如何将非常大的sql文件导入mysql?
- java - bean 类的无效属性“字段 [0]”
- laravel - 重置密码向我发送 localhost url laravel
- asp.net-mvc - ASP.NET MVC5 应用程序内存泄漏
- laravel - 十月 CMS 和当前页面上的导航