The "StrongNamer.AddStrongName" task failed unexpectedly.
Berke-Alp opened this issue · comments
Berke Alp Çalışkan commented
I'm getting this error when I try to build my Class Library project.
The "StrongNamer.AddStrongName" task failed unexpectedly.
System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
at Mono.Cecil.PE.ImageReader.ReadImage()
at Mono.Cecil.PE.ImageReader.ReadImage(Disposable`1 stream, String file_name)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
at Mono.Cecil.ModuleDefinition.ReadModule(String fileName)
at StrongNamer.AddStrongName.ProcessAssembly(ITaskItem assemblyItem, Byte[] keyBytes, StrongNamerAssemblyResolver resolver)
at StrongNamer.AddStrongName.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() FeryLib
Berke Alp Çalışkan commented
I'm trying to reference Flurl, Flurl.Http and Newtonsoft.Json