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

Analysing / Updating to SDK a Framework 4.8 vb.net dll project file. #1615

Open
RocktimeLtd opened this issue Nov 26, 2024 · 1 comment
Open

Comments

@RocktimeLtd
Copy link

Analysing / Updating to SDK a Framework 4.8 vb.net dll project file.

Steps to reproduce.

Create a brand new Framework 4.8 vb Class library.
Try to analyse it using command line tool in powershell. Trying to upgrade to sdk via vs extension hangs at Starting upgrade of selected nodes for TestUpgrade.vbproj...

Error

Selected options
─────────────────────────────────────────────────────────────────────────────────────────────────
Analysis settings code
Privacy mode Unrestricted
Report format Html
Report name b
Selected projects C:\LocalDev\RocktimeLogic\NET\10-FixingRefs\TestUpgrade\TestUpgrade.vbproj
Source Solution
Target framework .NET 6.0 (Supported until November, 2024)

Steps
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Source / Target framework / Projects / Settings / Config file / Report format / Report name / Privacy / Analysis
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────

We have gathered all required options and are ready to run analysis. Do you want to continue? [y/n] (y): y
Building project 'C:\LocalDev\RocktimeLogic\NET\10-FixingRefs\TestUpgrade\TestUpgrade.vbproj'...

Analyzing selected projects and their dependencies...

TestUpgrade 100%

System.ArgumentNullException: Value cannot be null. (Parameter 'value')
at System.ArgumentNullException.Throw(String paramName)
at System.String.StartsWith(String value)
at Microsoft.UpgradeAssistant.Helpers.LocalPathHelper.PreprocessLocalPaths(String path, String rootPath, Boolean isProtected, IEnvironmentService
environment) in D:\a_work\1\s\src\engine\Helpers\LocalPathHelper.cs:line 36
at Microsoft.UpgradeAssistant.Analysis.ProjectAnalysis.GetEntryRelativePath(AnalysisEntry entry) in
D:\a_work\1\s\src\engine\Analysis\ProjectAnalysis.cs:line 177
at Microsoft.UpgradeAssistant.Analysis.AnalysisBase.GetReport() in D:\a_work\1\s\src\engine\Analysis\AnalysisBase.cs:line 166
at Microsoft.UpgradeAssistant.Cli.Flow.Steps.Analysis.RunAnalysisFlowStep.<>c__DisplayClass14_0.b__0(StatusContext statusContext)
in D:\a_work\1\s\src\cli\Flow\Steps\Analysis\RunAnalysisFlowStep.cs:line 155
at Spectre.Console.Status.<>c__DisplayClass16_0.<b__0>d.MoveNext() in //src/Spectre.Console/Live/Status/Status.cs:line 79
--- End of stack trace from previous location ---
at Spectre.Console.Status.<>c__DisplayClass17_01.<<StartAsync>b__0>d.MoveNext() in /_/src/Spectre.Console/Live/Status/Status.cs:line 120 --- End of stack trace from previous location --- at Spectre.Console.Progress.<>c__DisplayClass28_01.<b__0>d.MoveNext() in /
/src/Spectre.Console/Live/Progress/Progress.cs:line 133
--- End of stack trace from previous location ---
at Spectre.Console.Internal.DefaultExclusivityMode.RunAsync[T](Func1 func) in /_/src/Spectre.Console/Internal/DefaultExclusivityMode.cs:line 40 at Spectre.Console.Progress.StartAsync[T](Func2 action) in //src/Spectre.Console/Live/Progress/Progress.cs:line 116
at Spectre.Console.Status.StartAsync[T](String status, Func2 func) in /_/src/Spectre.Console/Live/Status/Status.cs:line 117 at Spectre.Console.Status.StartAsync(String status, Func2 action) in /
/src/Spectre.Console/Live/Status/Status.cs:line 77
at Microsoft.UpgradeAssistant.Cli.Flow.Steps.Analysis.RunAnalysisFlowStep.GetReportAsync(IAnalysis analysis, CancellationToken cancellationToken)
in D:\a_work\1\s\src\cli\Flow\Steps\Analysis\RunAnalysisFlowStep.cs:line 151
at Microsoft.UpgradeAssistant.Cli.Flow.Steps.Analysis.RunAnalysisFlowStep.RunAsync(IFlowContext context, CancellationToken cancellationToken) in
D:\a_work\1\s\src\cli\Flow\Steps\Analysis\RunAnalysisFlowStep.cs:line 86
at Spectre.Console.Flow.FlowRunner.RunAsync(CancellationToken cancellationToken) in D:\a_work\1\s\src\spectre.flow\Flow\FlowRunner.cs:line 98

The project file is

Debug AnyCPU {04383836-6FF9-44CE-91C8-63CFB2CFB8A8} Library TestUpgrade TestUpgrade 512 Windows v4.8 true true full true true bin\Debug\ TestUpgrade.xml 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 pdbonly false true true bin\Release\ TestUpgrade.xml 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 On Binary Off On True Application.myapp True True Resources.resx True Settings.settings True VbMyResourcesResXFileCodeGenerator Resources.Designer.vb My.Resources Designer MyApplicationCodeGenerator Application.Designer.vb SettingsSingleFileGenerator My Settings.Designer.vb
@douglasware
Copy link

Seems the same bug as this: #1575 which is marked "Fixed" but isn't

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