@manhng

Welcome to my blog!

A strongly-named assembly is required

July 8, 2021 10:50

A strongly-named assembly is required (edit)

Strong Name tool (Sn.exe)
Assembly Linker (Al.exe)

SharePoint 2016: A Strongly-named Assembly Is Required (devoworx.com)

Referenced assembly does not have a strong name - CodeProject

Fix error “A strongly-named assembly is required” in Visual Studio | by Shao Wenbin Saleh | Medium

Folders:

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
C:\MyLib\bin\Debug\

Files:

C:\MyLib\bin\Debug\Skey.snk
C:\MyLib\bin\Debug\MyLib.dll.orig
C:\MyLib\bin\Debug\MyLib.il
C:\MyLib\bin\Debug\MyLib.res

Step by step:

1) cd "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\"
2) sn -k Skey.snk
3) ildasm "C:\MyLib\bin\Debug\MyLib.dll" /out:"C:\MyLib\bin\Debug\MyLib.il"
4) cd "C:\MyLib\bin\Debug\"
5) ren "MyLib.dll" "MyLib.dll.orig"
6) ilasm MyLib.il /dll /key=Skey.snk

Step by step:

cd "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\"

sn -k Skey.snk

ildasm "C:\MyLib\bin\Debug\MyLib.dll" /out:"C:\MyLib\bin\Debug\MyLib.il"

cd "C:\MyLib\bin\Debug\"

ren "MyLib.dll" "MyLib.dll.orig"

xopy /Y "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\x64\Skey.snk" to "C:\MyLib\bin\Debug\Skey.snk"

ilasm MyLib.il /dll /key=Skey.snk

=> MyLib.dll (that has a strongly-named)

Categories

Recent posts