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

Strong name signature could not be verified. #984

Closed
aalmada opened this issue Aug 2, 2019 · 5 comments
Closed

Strong name signature could not be verified. #984

aalmada opened this issue Aug 2, 2019 · 5 comments
Labels

Comments

@aalmada
Copy link

aalmada commented Aug 2, 2019

I'm getting the following error when building my project, that depends on System.Interactive, using an Azure DevOps pipeline:

System.IO.FileLoadException : Could not load file or assembly 'System.Interactive, Version=4.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

It happens for both 3.2.0 and 4.0.0 versions of System.Interactive.

@clairernovotny
Copy link
Member

We haven't seen this before, is there more information you can provide? OS, build, platform, repro steps?

@aalmada
Copy link
Author

aalmada commented Aug 4, 2019

I'm using a Microsoft-hosted agent with windows-2019 image with the following pipeline definition: https://github.com/NetFabric/NetFabric.Hyperlinq/blob/bb3ae83453c808f8bc4aec7809ad88d3474957b1/azure-pipelines.yml

It installs .NET Core 3.0.100-preview7-012821 before building.

It's a unit testing project that targets net461and netcoreapp2.1: https://github.com/NetFabric/NetFabric.Hyperlinq/blob/bb3ae83453c808f8bc4aec7809ad88d3474957b1/NetFabric.Hyperlinq.UnitTests/NetFabric.Hyperlinq.UnitTests.csproj

Here's the build log: https://dev.azure.com/aalmada/NetFabric.Hyperlinq/_build/results?buildId=225

It fails when executing the unit tests that uses a class from System.Interactive.

@clairernovotny
Copy link
Member

Coverlet modifies the files under test, which is what's leading to your error. You should exclude the Rx/Ix libraries from being instrumented by Coverlet as you're not collecting coverage for those.

@aalmada
Copy link
Author

aalmada commented Aug 4, 2019

Oh! Thanks! I had no idea...

@aalmada
Copy link
Author

aalmada commented Aug 5, 2019

I can now confirm that, excluding System.Interactive assembly from coverlet coverage, fixes the issue. Thanks for the help!

@aalmada aalmada closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants