picrap / SignReferences

Because open source causes CS1577 to strong naming fans.
MIT License
1 stars 0 forks source link

Sequence contains more than one matching element #4

Closed Mogikan closed 8 years ago

Mogikan commented 8 years ago

Hello Pascal,

Could you be so kind to change the following code in you sources: ProcessUtility private static string FindApplicationPath(string fileName) ... return path.Select(p => TryPath(p, fileName)).SingleOrDefault(p => p != null) ... SingleOrDefault fails on some PC's. It's not that convenient to fix environment variables on all these PC-s. So, could you be so kind to change it to FirstOrDefault, thanks.

Kind Regards, Vitaliy

picrap commented 8 years ago

Dam' right!

picrap commented 8 years ago

Fixed in 0.1.2.1.