Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referenced assembly 'TwoFactorAuth.Net.dll' does not have a strong name #21

Open
Qwessie opened this issue Feb 16, 2022 · 2 comments
Open
Assignees

Comments

@Qwessie
Copy link

Qwessie commented Feb 16, 2022

I've tried to install and use this 2FA library using nuget in my solution, but I get the following error when trying any of the classes/methods:

Referenced assembly 'TwoFactorAuth.Net.dll' does not have a strong name

I've checked the dll using sn.exe and indeed it says:

TwoFactorAuth.Net.dll does not represent a strongly named assembly

I have signing turned on in my projects and I don't want to disable it, but I also don't want to have to sign library dll's myself, since it makes updating from nuget more difficult.

Can you help me with this? Thanks in advance!

@RobThree
Copy link
Owner

I'm not sure I see the benefits of strong naming:

For .NET Core and .NET 5+, strong-named assemblies do not provide material benefits. The runtime never validates the strong-name signature, nor does it use the strong-name for assembly binding. source

Over the past, what, 15 years I've been in both camps several times and I still can't make up my mind. Currently I see no real benefits.

@RobThree RobThree self-assigned this Feb 17, 2022
@Qwessie
Copy link
Author

Qwessie commented Feb 17, 2022

I understand that for newer apps, that use .NET Core or .NET 5+, this might not have any benefits.

However, your library has a minimum of .NET 4.6, and our application uses 4.7.2 and does use strong naming. I cannot migrate to .NET Core or .NET 5+ in a foreseeable future, so I am now unable to use this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants