oising / strongnaming

A set of PowerShell Cmdlets to facilitate signing of unsigned 3rd party assemblies with a key of your choice, to allow them to be referenced by strongly named projects.
40 stars 6 forks source link

Value does not fall within the expected range #5

Open AnthonyTsang opened 11 years ago

AnthonyTsang commented 11 years ago

I am trying to type the commands for the strong name by inputting the commands until "dir -rec *NET.dll | set-strongname -keypair $key -verbose". My file name is end up with the word NET. The console shows a message "Set-StrongName : Value does not fall within the expected range. At line:1 char:35

The library I am trying to import is ImageMagick.NET http://imagemagick.codeplex.com/

oising commented 11 years ago

Can you reproduce the error, and then immediately run $e = $error[0]; $e.exception.tostring() and post the output here?

AnthonyTsang commented 11 years ago

this is the output, thx for response

PM> $e = $error[0]; $e.exception.tostring() System.ArgumentException: Value does not fall within the expected range. at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters) at Mono.Cecil.ModuleDefinition.Write(Stream stream, WriterParameters parameters) at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters) at StrongNaming.SetStrongNameCommand.ProcessAssemblyFile(String filePath) at StrongNaming.StrongNameCommandBase.ProcessRecord() at System.Management.Automation.Cmdlet.DoProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord()