GithubHelp home page GithubHelp logo

Assemblies are not Signed about monomod HOT 5 OPEN

monomod avatar monomod commented on August 21, 2024
Assemblies are not Signed

from monomod.

Comments (5)

Amberg avatar Amberg commented on August 21, 2024 2

@pardeike Do you have a source for this statement?
I found exactly the opposite. 😄 Here Microsoft recommends to strong name open source libraries:
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming#create-strong-named-net-libraries

Perhaps we are confusing things here. I am talking about strong naming the assemblies.
As far as I can tell, most open source projects are signed.

As example JSON:
// Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Mono.Cecil:
// Mono.Cecil, Version=0.11.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e

But of course you can also sign the assemblies yourself. But that is a bit tedious.

from monomod.

0x0ade avatar 0x0ade commented on August 21, 2024

Dang, I wanted to give a comment before having the issue closed 😅

Better documentation would certainly help as this is quite obscure knowledge right now, but: You should be able to declare a MonoModRules class that updates MonoModRule.Modder.WriterParameters in its static constructor. MonoMod exposes the Mono.Cecil writer parameters, which should allow you to set any information necessary for strong naming.

from monomod.

Amberg avatar Amberg commented on August 21, 2024

Ah ok I think I see. Thank you for your hint.. I was just interested in the "MonoMod.RuntimeDetour" package to setup a lightweight Hook. Is this not possible with a signed project?

Is there a reason why the packages are not signed? There is a snk file in the Common project..

from monomod.

0x0ade avatar 0x0ade commented on August 21, 2024

Ooooh, that's what you meant.

The main reason why MonoMod isn't signed is because it makes drop-in updates by users harder. The runtime seems to have much stricter versioning rules for signed .DLLs, I have yet to understand all the details though. I also remember there being more to it, but sadly not what exactly. I'll try digging up what I can remember 😅

from monomod.

pardeike avatar pardeike commented on August 21, 2024

Microsoft itself recommends to not sign open source projects. Big corporations or users with signing needs will have to sign the packages themselves.

The main problem here is that signed artifacts are creating lots of problems for ordinary users that have no idea what it means or have no intend to sign their artifacts.

from monomod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.