Reputation: 21
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()
Upvotes: 1
Views: 588
Reputation: 21
I have resolved this issue.The SignFile is not installed correctly.enter image description here
Double Click SignFile directly to install leads to the issue.Select File in the Project followed the png's guid is right.
Upvotes: 1
Reputation: 28196
What framework does your project target? It seems to be similar issue described here.
Please make sure you've installed the corresponding target-framework SDK, also you may need to install the .Net 4.0 SDK and restart PC to build the project again.
In addition: It seems you haven't install .net 4.6.1 SDK, so if possible you may need to install the .net framework 4.6.1
SDK also. Go Tools=>Get Tools and Features=>Individual Components
to install the .net framework 4.6.1
SDK package.
Upvotes: 0