strongnamer icon indicating copy to clipboard operation
strongnamer copied to clipboard

BadImageFormatException on iCal.net nugget for a .net4.6 projet

Open StephaneG31 opened this issue 6 years ago • 1 comments

I have an error using StrongNamer on a projet .net 4.6 where I want to add iCal.net https://www.nuget.org/packages/Ical.Net/

iCal.net used .net standart, path ic packages\Ical.Net.4.0.6\lib\netstandard1.3

The error on VS 2017 (15.6.5) Severity Code Description Project File Line Suppression State Error 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(Disposable1 stream, String file_name) at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) at StrongNamer.AddStrongName.ProcessAssembly(ITaskItem assemblyItem, StrongNameKeyPair key, 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() FranceTelecom.Systems `

StephaneG31 avatar May 04 '18 20:05 StephaneG31

Maybe fixed with #28?

Sam13 avatar Sep 10 '18 09:09 Sam13