SpecFlow.VisualStudio
SpecFlow.VisualStudio copied to clipboard
[DevExE2E][Regression] Fail to upgrade NUnit package from v3.13.2 to v4.0.1 for SpecFlowProject(Nunit, .net6.0).
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.
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.
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.<ExecuteBuildIntegratedProjectActionsAsync>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.<ExecuteNuGetProjectActionsAsync>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.<ExecuteNuGetProjectActionsAsync>d__86.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.PackageManagement.NuGetPackageManager.<ExecuteNuGetProjectActionsAsync>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.<<ExecuteActionsAsync>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.<CatchAndRethrowExceptionAsync>d__32.MoveNext() Time Elapsed: 00:00:00.3313081 ========== Finished ==========
Link to Repository Project
No response