dotnet / upgrade-assistant

A tool to assist developers in upgrading .NET Framework applications to .NET 6 and beyond
MIT License
1.1k stars 163 forks source link

Exception during Analysis #1575

Closed KimballCotejo closed 3 weeks ago

KimballCotejo commented 3 months ago

UpgradeAssistantError.txt An exception occurred when I tried to run the Analyze command. Refer attached file for the complete error.

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Exceptions (if any)

Further technical details

mgoertz-msft commented 2 months ago

@abpiskunov This looks like a bug:

System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.UpgradeAssistant.StringExtensions.EnsureTrailingChar(String s, Char ch) in D:\a_work\1\s\src\engine\Extensions\StringExtensions.cs:line 243 at Microsoft.UpgradeAssistant.StringExtensions.EnsureTrailingBackslash(String s) in D:\a_work\1\s\src\engine\Extensions\StringExtensions.cs:line 235 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 166 at Microsoft.UpgradeAssistant.Analysis.AnalysisBase.GetReport() in D:\a_work\1\s\src\engine\Analysis\AnalysisBase.cs:line 166

abpiskunov commented 3 weeks ago

Fixed in pending release.

lonix1 commented 2 weeks ago

Did you try with an older version? I tried the last few versions and get exceptions. Which version worked for you @KimballCotejo

Also: @abpiskunov When do you think the latest version will be released?

abpiskunov commented 2 weeks ago

Not shipped yet, in pending release. We are usually ship around once a month.