Why are you trying to compile the yarte
DLL file? ilasm
should take an IL source file.
It's not really a round trip if you ignore the output of ildasm
:-)
Domanda
I have a prebuilt dll assembly that I am trying to use. It is a winforms library and when I reference it I can use it in the designer/code without error. When I run it I get:
Assembly generation failed -- Referenced assembly 'YARTE' does not have a strong name
I decided to do the ildasm => ilasm round trip but I keep getting this error
C:\...\bin>ilasm /dll /key=mykey.snk YARTE.dll
Microsoft (R) .NET Framework IL Assembler. Version 4.0.30319.17929
Copyright (c) Microsoft Corporation. All rights reserved.
Assembling 'YARTE.dll' to DLL --> 'YARTE.dll'
Source file is ANSI
YARTE.dll(1) : error : syntax error at token 'MZ' in: ZÉ
I'm not finding much help elsewhere but I don't think this is a rare problem.
Soluzione
Why are you trying to compile the yarte
DLL file? ilasm
should take an IL source file.
It's not really a round trip if you ignore the output of ildasm
:-)