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

Reqnroll.VisualStudio plugin causes build to fail if the NUnitRetry.ReqnrollPlugin is used #410

Open
hideintheclouds opened this issue Dec 17, 2024 · 1 comment · May be fixed by #411
Open

Comments

@hideintheclouds
Copy link

hideintheclouds commented Dec 17, 2024

Used Visual Studio

Visual Studio 2022

Are the latest Visual Studio updates installed?

Yes

Content of reqnroll.json (if present)

{
"livingDocExecutionDataCollector": {
"enabled": true,
"filepath": "TestExecution.json"
},

"language": {
"binding": "en-US",
"feature": "en-US"
},
"NRetrySettings": {
"maxRetries": 4
},
"bindingAssemblies" : [
{
"assembly": "testAssembly"
}
]
}

Issue Description

When using the Visual Studio Reqnroll plugin together with the NUnitRetry.ReqnrollPlugin, the build fails.

When building using dotnet or other editors (such as Rider), then no build issues.
This issue has been reported here but this might have something to do with the way Reqnroll Visual Studio plugin loads the assemblies.

Steps to Reproduce

  1. Add the following nuget package to the project:
    <PackageReference Include="NUnitRetry.ReqnrollPlugin" Version="1.0.0" />
  2. Build the project in Visual Studio with the Reqnroll plugin enabled

Link to a project repository that reproduces the issue

No response

@gasparnagy
Copy link
Contributor

The issue is not related to the Visual Studio 2022 extension, but generally to Reqnroll.

The reason why you only see the error in Visual Studio 2022 but not when buliding the project with dotnet build is that VS compiles the project using MsBuild running in .NET Framework 4, while if you use dotnet build then the compilation is running in .NET 8/9 depending on the installed SDK.

I will try to move this issue to the core Reqnroll project

@gasparnagy gasparnagy transferred this issue from reqnroll/Reqnroll.VisualStudio Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants