GithubHelp home page GithubHelp logo

Comments (3)

samuelneff avatar samuelneff commented on September 1, 2024

I don't provide a binary release, only source, so as I understand it the strong naming is not on my end to release. It would only apply if I was providing a binary release.

If I'm misunderstanding the request, please clarify. I'm happy to do anything reasonable that helps out and doesn't affect other users.

from mimetypemap.

Pzixel avatar Pzixel commented on September 1, 2024

In my case I have a solution, and every project within is an assembly with a strong name. And as you know, assembly with strong name can't use assemblies without it. So I cannot use your package in my solution. I always get an error Could not load file or assembly 'MimeTypeMap, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

Problem is with PublicKeyToken which is null. For example, it's not possible to put your library in GAC. So any user who want to place it there will encounter the same problem.

Just generate an *.snk, sign asselbmy with it and update NuGet. There is plenty of examples on the internet "signing assembly in 5 minutes" and so on.

To create and sign an assembly with a strong name by using Visual Studio

  • In Solution Explorer, open the shortcut menu for the project, and then choose Properties.
  • Choose the Signing tab.
  • Select the Sign the assembly box.
  • To create a new key file, choose <New…> and enter its name in the Create Strong Name Key dialog box.

from mimetypemap.

samuelneff avatar samuelneff commented on September 1, 2024

Thanks for explaining. I actually don't manage the NuGet repository. You are free to create your own strong named version for your use.

from mimetypemap.

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.