Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having one dll with version 1.0.2152.36099. I want to convert same dll to strongly typed dll with same version.

I am using
C#
Command 1:            sn -k keyPair.snk
Command 2:            ildasm SomeAssembly.dll /out:SomeAssembly.il
Command 3:            ren SomeAssembly.dll SomeAssembly.dll.orig
Command 4:            ilasm SomeAssembly.il /dll /key=keyPair.snk


Commands.


Thank you in advance...
Posted
Updated 25-Jun-14 1:53am
v3

1 solution

It seems you have a syntax error on the last line...
According to ilasm info page in MSDN[^] it should go like this:
ilasm SomeAssembly.il /dll /key:keyPair.snk
 
Share this answer
 
Comments
Amol Lendave 25-Jun-14 7:55am    
No by mistekan space was ther

ilasm SomeAssembly.il /dll /key=keyPair.snk

it is working but the version of the dll is get changed with Current CSC(C# Compiler) version
Kornfeld Eliyahu Peter 25-Jun-14 9:32am    
I switched = with : according MSDN...
'working but the version of the dll is get changed' - explain it please...
Amol Lendave 25-Jun-14 11:30am    
: = will not matter.
Issue is i am having CSC with 4.somthing
By using that i am converting XXX.dll to strongly typed XXX.dll.
But it will get the newer version that is i am currently used. That i don't want

What i can do to get the older version CSC so i can convert it into 3.5 (I want V3.5).
Kornfeld Eliyahu Peter 25-Jun-14 13:28pm    
Do you mean the assembly version of the dll?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900