StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
322 stars 78 forks source link

FileLoadException when trying to use Nuget Package in Visual Studio #57

Closed marinewater closed 9 years ago

marinewater commented 9 years ago

I get this error with the nuget package when trying to use demoinfo in Visual Studio:

An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'DemoInfo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dc7de83c756ec63d' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
main-- commented 9 years ago

Quoting the readme:

Please note that the assemblies in these releases are not properly signed. They're delay-signed to ensure seamless compatibility with regular (stable) releases, but they don't carry a valid signature. This means that you may have to exclude DemoInfo.dll from strong name verification if you use these prereleases

39 attempted to fix this, but we didn't find time (and/or a windows machine) to test it, so we ended up abandoning it.

You could test #39 and if it works, we could merge it to finally fix this issue.

Or you could just add the verification exemption yourself by running sn -Vr path\to\DemoInfo.dll in a visual studio command prompt.

marinewater commented 9 years ago

Thanks, the command worked, the NuGet package in the Pull Request did not.