本文介绍了vs2017中的错误MSB4018:"SignFile"任务意外失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 ppt2013 插件解决方案,其中安装了vsto,安装了vs 2017的开发人员机器.生成时,出现signFile错误.我已经安装

I have a ppt2013 plugin solution with vsto, developer machines with vs 2017 installed.When I build, it comes the signFile error. I've installed

.Net framework 4.5.1 targeting pack
.Net framework 4.5.1 SDK
.Net framework 4.5.2 targeting pack
.Net framework 4.6 SDK
.Net framework 4.6 targeting pack
.Net framework 4.6.1 targeting pack
.Net framework 4.6.2 SDK
.Net framework 4.6.2 targeting pack

有人有解决这个错误的好主意吗?

Does anyone have a good idea to solve the error?

> detail: D:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018: The "SignFile" task failed unexpectedly. 8>D:\Program
> Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018: System.InvalidOperationException: Exception of type
> 'System.InvalidOperationException' was thrown. 8>D:\Program Files
> (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018:    at
> Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFileInternal(X509Certificate2
> cert, Uri timestampUrl, String path, Boolean
> targetFrameworkSupportsSha256, ResourceManager resources) 8>D:\Program
> Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018:    at
> Microsoft.Build.Tasks.Deployment.ManifestUtilities.SecurityUtilities.SignFile(String
> certThumbprint, Uri timestampUrl, String path, String
> targetFrameworkVersion) 8>D:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018:    at Microsoft.Build.Tasks.SignFile.Execute()
> 8>D:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018:    at
> Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
> 8>D:\Program Files (x86)\Microsoft Visual
> Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(264,9):
> error MSB4018:    at
> Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

推荐答案

我已经解决了此问题.SignFile未正确安装.在此处输入图片描述

I have resolved this issue.The SignFile is not installed correctly.enter image description here

直接双击SignFile来安装会导致问题.在Project中选择File,然后png的向导正确.

Double Click SignFile directly to install leads to the issue.Select File in the Project followed the png's guid is right.

这篇关于vs2017中的错误MSB4018:"SignFile"任务意外失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 01:53