首页 > 解决方案 > 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)

标签: c#visual-studiomonodevelop

解决方案


推荐阅读