Unit Tests fails with nunit-console (in VS R# all tests are fine) - Exceptions maybe related to Resharper.SDK.Tests?

I've tried to upgrade the R# Plugin TestCop. Everything seems to work fine (all tests went green with R# integrated test runner).

I also installed the extension locally  (like mentioned here => ReSharper DevGuide > Local Installation) and everything works like expected.

So I've created a pull request. But there are all tests failed with nunit-console runner and i think the exceptions are maybe related to the SDK

Build/Test Log: AppVeyor Console Output
GitHub: Pull request

can someone here help in the search for the cause of the error?

4 comments

The build log indicates a conflict

 

[00:00:35] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' and 'Platform:Microsoft.Build.dll'. NETSDK1033: Choosing 'Reference:Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' because AssemblyVersion '15.1.0.0' is greater than '4.0.0.0'. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:35] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' and 'Platform:Microsoft.Build.Framework.dll'. NETSDK1033: Choosing 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' because AssemblyVersion '15.1.0.0' is greater than '4.0.0.0'. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:35] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Platform:Microsoft.Build.dll' and 'Reference:Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL'. NETSDK1033: Choosing 'Reference:Microsoft.Build, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' because AssemblyVersion '15.1.0.0' is greater than '4.0.0.0'. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:35] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.ConflictResolution.targets(33,5): message NETSDK1041: Encountered conflict between 'Platform:Microsoft.Build.Framework.dll' and 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL'. NETSDK1033: Choosing 'Reference:Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=5aaa11a165479571, processorArchitecture=MSIL' because AssemblyVersion '15.1.0.0' is greater than '4.0.0.0'. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:40] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of "System.Collections.Immutable" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:40] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of "System.IO.Compression" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]
[00:00:40] C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3277: Found conflicts between different versions of "System.Runtime.InteropServices.RuntimeInformation" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [C:\projects\resharper-testcop\Project\Src\TestCop.Plugin\TestCop.Plugin.csproj]

...

...

Later on when the nunit console attempts to run we get

 

[00:01:28] --- EXCEPTION #1/3 [FileLoadException]
[00:01:28] Message = "Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.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)"
[00:01:28] ExceptionPath = Root.InnerException.InnerException
[00:01:28] ClassName = System.IO.FileLoadException
[00:01:28] Data.ThreadLocalDebugInfo = Environment::Create
[00:01:28] Data.DescriptorType = "JetBrains.Application.Extensibility.PartCatalogTypeComponentDescriptor, JetBrains.Platform.ComponentModel, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325"
[00:01:28] Data.State = Null
[00:01:28] HResult = FUSION_E_SIGNATURE_CHECK_FAILED=80131045
[00:01:28] Source = mscorlib
[00:01:28] FileLoad_FileName = "Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

0

A DLL version comparison of appveyor bin/release folder and local machine appear to match exactly

0

Appveyor has these additional files

Microsoft.Build.Framework.dll 15.9.21.664
Microsoft.VisualStudio.Editor.dll 15.9.81.48455
Microsoft.VisualStudio.ImageCatalog.dll 15.0.28307.106
Microsoft.VisualStudio.Imaging.dll 15.0.28307.106
Microsoft.VisualStudio.Language.Intellisense.dll 15.9.81.48455
Microsoft.VisualStudio.Shell.14.0.dll 14.0.25407.0
Microsoft.VisualStudio.Shell.Immutable.10.0.dll 10.0.30319.1
Microsoft.VisualStudio.Shell.Immutable.11.0.dll 11.0.50727.1
Microsoft.VisualStudio.Shell.Immutable.12.0.dll 12.0.21003.1
Microsoft.VisualStudio.Shell.Immutable.14.0.dll 14.0.25407.0
Microsoft.VisualStudio.Text.Logic.dll 15.9.81.48455
Microsoft.VisualStudio.Utilities.dll 15.0.28307.106
Microsoft.VisualStudio.Validation.dll 15.3.58.53609
Microsoft.VisualStudio.VCProjectEngine.dll 14.0.25431.1 built by: D14VSULDR
Microsoft.VisualStudio.Workspace.dll 15.0.484.16659
Microsoft.VisualStudio.Workspace.Extensions.dll 15.0.484.16659
Microsoft.VisualStudio.Workspace.VSIntegration.Contracts.dll 15.0.484.16659
StreamJsonRpc.dll 1.3.16.43180
System.Threading.Tasks.Dataflow.dll 4.5.24.0
0

Issue fixed with latest version of resharper. R#2019.2.

 

 

0

Please sign in to leave a comment.