dotnet / upgrade-assistant

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

Initializing selected projects and their dependencies... never completes #1577

Open follesoe opened 4 months ago

follesoe commented 4 months ago

No upgrade-assistant.clef is produced.

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

follesoe@Jonas-MacBook-Pro-M1-16-inch BlueyeApp % upgrade-assistant --version
0.5.678.21462
mgoertz-msft commented 4 months ago

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

follesoe commented 2 months ago

@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
mgoertz-msft commented 2 months ago

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

Lancelotbronner commented 1 month ago

I have the same issue here, any updates on this?

Lancelotbronner commented 2 weeks ago

Still happens as of version 0.5.820.28361.