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

Request to update to net8 and support Test Explorer runs in VS2022 #68

Closed
VladimirNilov opened this issue Jul 17, 2024 · 2 comments
Closed

Comments

@VladimirNilov
Copy link

VladimirNilov commented Jul 17, 2024

Hi,
I'd like to request a support ticket to make the lib work with .net8 and Visual Studio 2022 Test Explorer if it's possible

Dotnet test is good to have, but vstest runner is a default runner for Visual Studio, plus it has some benefits for Azure DevOps tasks.
Moreover, I'm not sure whether it can be a problem or not, but inside sources it's still using old
PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="15.5.0"

Current behavior - the same as in the opened bug: #66:

Error] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at ReportPortal.VSTest.TestLogger.ReportPortalLogger..ctor()

Moreover, I've tried to make the updates myself, bug got into Failed to load extensions from file for the ReportPortal.VSTest.TestLogger.dll

Thank you!

@VladimirNilov
Copy link
Author

VladimirNilov commented Jul 19, 2024

as it was mentioned above NET Framework cannot load .NET assemblies natively, which means that the extension doesn't support running .net8.0 tests in the Test Explorer and vstest.console.exe from the box.
The limitation is on the vstest side (it would be good to mention it in the readme as we cannot use the extension with the vstest.console.exe and Test Explorer)
also, it's not only about net8.0 but related to the client-dotnet that needs to load System.Text.Json with dependencies to .Net 6.0 libs
the last time it was working was probably for client 3.0.6, when the client had usage instead of System.Text.Json the
System.Runtime.Serialization
using

@nvborisenko
Copy link
Member

nvborisenko commented Jul 19, 2024

@VladimirNilov will you be able to raise an issue in vstest repo?

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