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

Cannot run tests locally #103

Closed
sharwell opened this issue Apr 27, 2017 · 2 comments
Closed

Cannot run tests locally #103

sharwell opened this issue Apr 27, 2017 · 2 comments

Comments

@sharwell
Copy link
Member

sharwell commented Apr 27, 2017

When I try to run the tests locally (via Visual Studio 2017 Test Explorer), I get the following message:

Message: System.IO.FileLoadException : Could not load file or assembly 'Microsoft.VisualStudio.Threading, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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)

I tried editing the Microsoft.VisualStudio.Threading.csproj project file to disable signing temporarily (with <SignAssembly>False</SignAssembly>, but that just changed the error message to the following:

Message: System.IO.FileLoadException : Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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)

@AArnott
Copy link
Member

AArnott commented Apr 27, 2017

Launch VS from a cmd window where you have SET signtype=mock, then rebuild.

We'll doc this is the Readme or contributing doc.

@AArnott
Copy link
Member

AArnott commented Apr 27, 2017

Also you have to register for skip verification with the workaround I mentioned. This is documented for another repo of ours here: https://github.com/Microsoft/vs-streamjsonrpc/blob/master/CONTRIBUTING.md#running-tests

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

No branches or pull requests

2 participants