prjseal / PasswordGenerator

A library which generates random passwords with different settings to meet the OWASP requirements
MIT License
178 stars 43 forks source link

Could not load System runtime version 4.1.2 #6

Closed joromeo closed 5 years ago

joromeo commented 5 years ago

I just downloaded the latest nuget package for password generator v2.0.0 and it now throws an error about my system.runtime which is currently 4.3.1.

Error about runtime is as follows: Could not load file or assembly 'System.Runtime, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

When will there be support for the new system.runtime version?

prjseal commented 5 years ago

Hi Thanks for raising this. I will look into resolving this tonight.

Cheers

Paul

prjseal commented 5 years ago

@joromeo I'm struggling to replicate this issue, please can you give me more information about the project you have installed this into so I can replicate it?

joromeo commented 5 years ago

of course.

it is a .net api running framework 4.7.2. this is the code: var pwdGen = new Password(includeLowercase: true, includeUppercase: true, includeNumeric: true, includeSpecial: true, passwordLength: 12); return pwdGen.Next();

And it throws the error when i call the function the above is wrapped inside. Everything was working fine prior to updated the password generator through nuget. I had updated several packages at that time, but the system.runtime is the only error that is thrown.

prjseal commented 5 years ago

Thanks for raising this. I've updated the package version to 2.0.1 I've changed the compatibility to .net standard 2.0 upwards and .net framework 4.6.1 upwards

Please test it out and let me know.

You might have to wait for the package to be published, 15 minutes from now.

joromeo commented 5 years ago

Good Morning, I can now successfully generate a random password. Thank you for getting this fixed so quickly!

prjseal commented 5 years ago

That’s brilliant. Thanks for getting back to me.