If the original assembly is marked for delayed signing, then you can use the sn.exe tool.
If the original assembly is not so marked, then you can disassemble it with ildasm.exe, then re-asssemble it with ilasm.exe and specify the /key argument. References: [1] [2].
Example:
> ildasm /all /out=MYASSEMBLY.il MYASSEMBLY.dll
> ilasm /dll /key=key.snk MYASSEMBLY.il
Related Contents:
- MSI vs nuget packages: which are is better for continuous delivery?
- How to read embedded resource text file
- Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths – why?
- Which method performs better: .Any() vs .Count() > 0?
- Choosing between MEF and MAF (System.AddIn)
- Nuget connection attempt failed “Unable to load the service index for source”
- C++/CLI Mixed Mode DLL Creation
- Using Json.NET converters to deserialize properties
- Running .net based application without .NET Framework
- Case insensitive string compare in LINQ-to-SQL
- What is the maximum length of an array in .NET on 64-bit Windows
- What does “exited with code 9009” mean during this build?
- .NET Memory Profiling Tools [duplicate]
- LINQ on the .NET 2.0 Runtime
- What’s the difference between KeyDown and KeyPress in .NET?
- Removing Default dialogs from MSI
- New asp.net charting controls – will they work with MVC (eventually)?
- Array.Copy vs Buffer.BlockCopy
- Why isn’t there an XML-serializable dictionary in .NET?
- How to apply multiple styles in WPF
- What is a dependency property?
- How did Microsoft create assemblies that have circular references?
- How do you parse an HTML in vb.net
- Linq int to string
- EF LINQ include multiple and nested entities
- What are the advantages and disadvantages of using the GAC?
- Mixed mode assembly in .NET 4
- Get HTTP requests and responses made using HttpWebRequest/HttpWebResponse to show in Fiddler
- BitmapImage in WPF does lock file
- System.IO.FileSystemWatcher to monitor a network-server folder – Performance considerations
- How to use “contains” or “like” in a dynamic linq query?
- NetworkStream.ReadAsync with a cancellation token never cancels
- Windows or Visual Studio 2022 can’t find the latest installed .NET SDK due to bitness
- SendInput and 64bits
- How do I serialize an enum value as an int?
- Enumerating .NET assembly resources at runtime
- WCF: Exposing readonly DataMember properties without set?
- How securely unguessable are GUIDs?
- CLIPBRD_E_CANT_OPEN error when setting the Clipboard from .NET
- .NET: Are there any differences between InvariantCulture and en-US?
- Custom app.config Config Section Handler
- Using entity framework on multiple databases
- How determine if application is web application
- Data Access Layer design patterns
- How do I install .NET Framework only when it’s not already installed?
- Visual Studio Code for .NET Framework
- Is there an easy way in .NET to get “st”, “nd”, “rd” and “th” endings for numbers? [duplicate]
- Which Dependency Injection Tool Should I Use? [closed]
- Hosting the .NET runtime in a Delphi Program
- how do I work around log4net keeping changing publickeytoken