dotnet/upgrade-assistant

Initializing selected projects and their dependencies... never completes

follesoe opened this issue · 5 comments

No upgrade-assistant.clef is produced.

  • Include the log file upgrade-assistant.clef that is produced in the working directory

Describe the bug

When running the upgrade-assistant analyze command on my Xamarin.Android/Xamarin.iOS/Xamarin.Forms project, it never gets past the following output:

Selected options                                                 
──────────────────────────────────────────────────────────────────
 Analysis settings   code,binaries                                
 Privacy mode        Unrestricted                                 
 Report format       Csv                                          
 Report name         BlueyeMauiMigrationReport                    
 Selected projects   Blueye.App.Droid.csproj (+ 9 more projects)  
 Source              Solution                                     
 Target framework    .NET 8.0 (Supported until November, 2026)    
                                                                  
                                                                                                        
 Steps                                                                                                  
────────────────────────────────────────────────────────────────────────────────────────────────────────
 Source / Target framework / 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
Restoring packages for '/Users/follesoe/source/BlueyeApp/Droid/Blueye.App.Droid.csproj' ...
Building project '/Users/follesoe/source/BlueyeApp/Droid/Blueye.App.Droid.csproj'...
                                                                
▰▰▰▱▱▱▱ Initializing selected projects and their dependencies...

I have let it run for ~30 minutes, but no progress or output.

To Reproduce

Exceptions (if any)

Just ran upgrade-assistant analyze Blueye.App.sln

Further technical details

  • macOS Sonoma 14.5
follesoe@Jonas-MacBook-Pro-M1-16-inch BlueyeApp % dotnet --list-sdks
6.0.300 [/usr/local/share/dotnet/sdk]
6.0.301 [/usr/local/share/dotnet/sdk]
6.0.302 [/usr/local/share/dotnet/sdk]
6.0.400 [/usr/local/share/dotnet/sdk]
6.0.401 [/usr/local/share/dotnet/sdk]
6.0.402 [/usr/local/share/dotnet/sdk]
6.0.403 [/usr/local/share/dotnet/sdk]
6.0.404 [/usr/local/share/dotnet/sdk]
6.0.405 [/usr/local/share/dotnet/sdk]
6.0.406 [/usr/local/share/dotnet/sdk]
6.0.407 [/usr/local/share/dotnet/sdk]
6.0.408 [/usr/local/share/dotnet/sdk]
6.0.410 [/usr/local/share/dotnet/sdk]
6.0.412 [/usr/local/share/dotnet/sdk]
6.0.413 [/usr/local/share/dotnet/sdk]
6.0.414 [/usr/local/share/dotnet/sdk]
6.0.416 [/usr/local/share/dotnet/sdk]
6.0.417 [/usr/local/share/dotnet/sdk]
6.0.418 [/usr/local/share/dotnet/sdk]
6.0.419 [/usr/local/share/dotnet/sdk]
6.0.420 [/usr/local/share/dotnet/sdk]
6.0.421 [/usr/local/share/dotnet/sdk]
7.0.100 [/usr/local/share/dotnet/sdk]
7.0.101 [/usr/local/share/dotnet/sdk]
7.0.102 [/usr/local/share/dotnet/sdk]
7.0.103 [/usr/local/share/dotnet/sdk]
7.0.200 [/usr/local/share/dotnet/sdk]
7.0.201 [/usr/local/share/dotnet/sdk]
7.0.202 [/usr/local/share/dotnet/sdk]
7.0.203 [/usr/local/share/dotnet/sdk]
7.0.302 [/usr/local/share/dotnet/sdk]
7.0.304 [/usr/local/share/dotnet/sdk]
7.0.306 [/usr/local/share/dotnet/sdk]
7.0.307 [/usr/local/share/dotnet/sdk]
7.0.308 [/usr/local/share/dotnet/sdk]
7.0.310 [/usr/local/share/dotnet/sdk]
7.0.311 [/usr/local/share/dotnet/sdk]
7.0.312 [/usr/local/share/dotnet/sdk]
7.0.313 [/usr/local/share/dotnet/sdk]
7.0.314 [/usr/local/share/dotnet/sdk]
7.0.315 [/usr/local/share/dotnet/sdk]
8.0.100 [/usr/local/share/dotnet/sdk]
8.0.302 [/usr/local/share/dotnet/sdk]
follesoe@Jonas-MacBook-Pro-M1-16-inch BlueyeApp % upgrade-assistant --version
0.5.678.21462

@follesoe Similar to issue #1581, don't turn on binary analysis when creating the assessment report.

@mgoertz-msft Tried to run it without binaryanalysis on, still never completes or provide additional feedback:

                                                                
 Selected options                                               
────────────────────────────────────────────────────────────────
 Analysis settings   code                                       
 Privacy mode        Unrestricted                               
 Report format       Html                                       
 Report name         MauiMigration                              
 Selected projects   Blueye.App.iOS.csproj (+ 3 more projects)  
 Source              Solution                                   
 Target framework    .NET 8.0 (Supported until November, 2026)  
                                                                
                                                                                                                   
 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 solution /Users/follesoe/source/BlueyeApp/Blueye.App.sln ...
Msbuild was not found.
                                                                
▰▰▰▰▰▰▱ Initializing selected projects and their dependencies...

I see a warning msbuild is missing. However, if I run msbuild from the same terminal I get the following output:

follesoe@Jonas-MacBook-Pro-M1-16-inch BlueyeApp % msbuild
Microsoft (R) Build Engine version 16.10.1 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.

Running the following version of upgrade-assistant:

follesoe@Jonas-MacBook-Pro-M1-16-inch BlueyeApp % upgrade-assistant -v     
0.5.764.42881

@abpiskunov Any ideas why UA wouldn't be able to find msbuild on Mac even though Terminal can?