Unit Tests fails with nunit-console (in VS R# all tests are fine) - Exceptions maybe related to Resharper.SDK.Tests? Follow
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?
Please sign in to leave a comment.
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"
A DLL version comparison of appveyor bin/release folder and local machine appear to match exactly
Appveyor has these additional files
Issue fixed with latest version of resharper. R#2019.2.