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

[DevExE2E][Regression] Fail to upgrade NUnit package from v3.13.2 to v4.0.1 for SpecFlowProject(Nunit, .net6.0). #216

Open
v-hozha1 opened this issue Jan 4, 2024 · 0 comments

Comments

@v-hozha1
Copy link

v-hozha1 commented Jan 4, 2024

Used Visual Studio

Visual Studio 2019

Are the latest Visual Studio updates installed?

Yes

SpecFlow Section in app.config or content of specflow.json

No response

Issue Description

Fail to upgrade NUnit package from v3.13.2 to v4.0.1 for SpecFlowProject(NUnit, .net6).
This is a regression issue, it doesn't repro on VS 17.8.2.

Steps to Reproduce

Affected Branch: main
Affected Build: Version 17.9.0 Preview 3.0 [34503.160.main]
Affected Product Language:
Affected Build link: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=8871692&view=ms.vss-build-web.run-extensions-tab

Pre-steps:
Navigate to "Extensions -> Manage Extensions ->Online" and search for "SpecFlow" in the search bar.
Hit Download. You'll need to restart VS for the installation to completed.

Steps:
1.Create a new project -> search and select "SpecFlow Project"
2.On Create a new SpecFlow Project page-> Framework: .NET6.0 or fx48-> Test Framework: "Nunit" -> click "Create"
3.In Soultion Explorer -> right-click the project -> Manage NuGet Packages...
4. Upgrade all packages to latest version in NuGet manager UI.

Expected Results:
All packages should be upgraded to latest version, with no error.
image

Actual Results:
Fail to upgrade NUnit package from v3.13.2 to v4.0.1 for SpecFlowProject(Nunit, .net6.0).

Severity Code Description Project File Line Suppression State Details
Error Object reference not set to an instance of an object.

image

Restoring packages for C:\Users\v-hozha1\source\repos\SpecFlowProject1\SpecFlowProject1\SpecFlowProject1.csproj...
GET https://api.nuget.org/v3/vulnerabilities/index.json
OK https://api.nuget.org/v3/vulnerabilities/index.json 10ms
GET https://api.nuget.org/v3-vulnerabilities/2023.12.31.12.43.55/vulnerability.base.json
GET https://api.nuget.org/v3-vulnerabilities/2023.12.31.12.43.55/2024.01.03.18.44.17/vulnerability.update.json
OK https://api.nuget.org/v3-vulnerabilities/2023.12.31.12.43.55/vulnerability.base.json 20ms
OK https://api.nuget.org/v3-vulnerabilities/2023.12.31.12.43.55/2024.01.03.18.44.17/vulnerability.update.json 47ms
System.NullReferenceException: Object reference not set to an instance of an object.
at NuGet.PackageManagement.NuGetPackageManager.d__93.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__87.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.PackageManagement.NuGetPackageManager.d__85.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<>c__DisplayClass20_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.d__32.MoveNext()
Time Elapsed: 00:00:00.3313081
========== Finished ==========

Link to Repository Project

No response

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

1 participant