当您编译一个新项目时,会出现以下错误:
Severity Code Description Project File Line Suppression State
Error MSB4018 The "SignTask" task failed unexpectedly.
System.Security.Cryptography.CryptographicException: Acesso negado.
at Microsoft.DriverKit.Build.Shared.CreateCertificate.CryptAcquireContext(String keyContainerName, String providerName, PROV providerType)
at Microsoft.DriverKit.Build.Shared.CreateCertificate.CreateSelfSignedCertificate()
at Microsoft.DriverKit.Build.Tasks.SignTask.AutoGenerateTestCertificate()
at Microsoft.DriverKit.Build.Tasks.SignTask.AutoPickTestCertificate()
at Microsoft.DriverKit.Build.Tasks.SignTask.GenerateCommandLineCommands()
at Microsoft.Build.Utilities.ToolTask.Execute()
at Microsoft.DriverKit.Build.Tasks.TrackedVCToolTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() BrunoGysinDriver C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets 1348
我尝试了多次,但是没有找到任何东西。 有人知道解决方案吗?