StefH / Matroska

An Ebml based serializer to deserialize a Matroska file (.mkv or .webm)
MIT License
14 stars 1 forks source link

A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) #8

Closed meschi89 closed 3 years ago

meschi89 commented 3 years ago

Thanks for your work.

When I want to use this NuGet package, it shows me the following message: image

I tried a lot of things, also signing my assembly with my .snk file and with the Matroska one. image image

Nothing works. Can you help me?

StefH commented 3 years ago

@meschi89 It's very difficult for me to detect this error. Can you please provide a working example?

meschi89 commented 3 years ago

Yes, here is my project (see file ReplayMkv.cs) AzureJudge.zip

I solved it by taking all the sources, add the project as a reference and removed the "signing" flag on the Matroska project. Because as stated here: https://stackoverflow.com/a/64827702 If your current project's assembly is signed, then all your reference assemblies must also be signed. Failure to do so will result in this error.

And your Matroska project is signed, however, the needed NEbml is not. This results in this error.

StefH commented 3 years ago

I see. I did not have this issue when using this project in : https://github.com/StefH/Blazor.YouTubeDownloader, maybe because that's a .NET Core Blazor project ?

But I'll release a new version from Matroska which is not signed.

StefH commented 3 years ago

https://github.com/StefH/Matroska/pull/9

meschi89 commented 3 years ago

I'm not very familiar with .NET Core, so I can not tell. Thanks for your effort.