maui-migration-samples icon indicating copy to clipboard operation
maui-migration-samples copied to clipboard

.NET upgrade assistant error

Open petemillermultimedia opened this issue 2 years ago • 0 comments

Environment

Are you on Windows or Mac: Windows Visual Studio Version: 2022 Preview .NET version dotnet --version: 6.0.400 MAUI version installed: ?

Your code

Is it an app or a library? App What platforms does it target? Android/IOS Is it Xamarin.Forms? What version? (PS we recommend only migrating XF 5+) Yes, 5.0 Do you use Xamarin.Essentials? Yes Is your app/library open source? Share the link! No If it isn't OSS, would you be willing to show someone on our team some code in a video call? Sure

Migration

Did you follow the steps on the migration wiki Yes Was it successful? No What went wrong? Details please! Error in upgrade assistant

[ X] I couldn't finish the steps [ ] It didn't build after I finished migrating [ ] I need NuGets that aren't compatible with MAUI yet [ ] It built, but the layout/UI is all messed up [ ] I have no idea what happened, please help!!!

This is the log:

2022-09-01 10:22:53.293 -04:00 [INF] Loaded 5 extensions 2022-09-01 10:22:53.695 -04:00 [INF] MSBuild registered from C:\Program Files\dotnet\sdk\5.0.411
2022-09-01 10:22:54.222 -04:00 [INF] Found Visual Studio v17.4.32804.182 [C:\Program Files\Microsoft Visual Studio\2022\Preview] 2022-09-01 10:22:54.233 -04:00 [INF] Found Visual Studio v16.11.32802.440 [C:\Program Files (x86)\Microsoft Visual Studio\2019B] 2022-09-01 10:22:54.242 -04:00 [INF] Found Visual Studio v17.2.32616.157 [C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools] 2022-09-01 10:22:59.852 -04:00 [INF] Initializing upgrade step Select an entrypoint 2022-09-01 10:23:58.330 -04:00 [INF] Applying upgrade step Select an entrypoint 2022-09-01 10:24:18.925 -04:00 [INF] Upgrade step Select an entrypoint applied successfully 2022-09-01 10:24:22.235 -04:00 [INF] Initializing upgrade step Select project to upgrade 2022-09-01 10:24:22.376 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:22.380 -04:00 [INF] Project OTT.Mobile.Core.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:40.686 -04:00 [INF] Applying upgrade step Select project to upgrade 2022-09-01 10:24:40.692 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:40.694 -04:00 [INF] Project OTT.Mobile.Core.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:40.765 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:40.767 -04:00 [INF] Project OTT.Mobile.Services.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:40.823 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:40.825 -04:00 [INF] Project OTT.RMMHub.Core.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:40.868 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:40.871 -04:00 [INF] Project OTT.RMMHub.Data.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:41.074 -04:00 [INF] Skip minimum dependency check because .NET MAUI support multiple TFMs. 2022-09-01 10:24:41.076 -04:00 [INF] Project OTT.RMMHub.Mobile.csproj is of type .NET MAUI Target: MAUI head, migration to .NET MAUI requires to be multiplatform 2022-09-01 10:24:43.876 -04:00 [ERR] Target is still unavailable after restore. Please verify that the project has been restored. 2022-09-01 10:24:43.884 -04:00 [ERR] Unexpected error applying step Microsoft.DotNet.UpgradeAssistant.UpgradeException: Cannot find targets. Please ensure that the project is fully restored. at Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildProject.GetAllPackageReferenceDependenciesAsync(TargetFrameworkMoniker tfm, CancellationToken token)+MoveNext() in //src/components/Microsoft.DotNet.UpgradeAssistant.MSBuild/MSBuildProject.NuGetPackages.cs:line 156 at Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildProject.GetAllPackageReferenceDependenciesAsync(TargetFrameworkMoniker tfm, CancellationToken token)+System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult() at System.Linq.AsyncEnumerable.<AnyAsync>g__Core|211_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 58 at System.Linq.AsyncEnumerable.<AnyAsync>g__Core|211_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 58 at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 83 at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 81 at Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildProject.IsTransitivelyAvailableAsync(String packageName, CancellationToken token) in //src/components/Microsoft.DotNet.UpgradeAssistant.MSBuild/MSBuildProject.NuGetPackages.cs:line 72 at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 83 at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable1 source, Func2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 81 at Microsoft.DotNet.UpgradeAssistant.Extensions.Windows.WindowsComponentIdentifier.GetComponentsAsync(IProject project, CancellationToken token) at Microsoft.DotNet.UpgradeAssistant.MSBuild.MSBuildProject.GetComponentsAsync(CancellationToken token) in //src/components/Microsoft.DotNet.UpgradeAssistant.MSBuild/MSBuildProject.cs:line 114 at Microsoft.DotNet.UpgradeAssistant.Checks.MultiTargetFrameworkCheck.IsReadyAsync(IProject project, UpgradeReadinessOptions options, CancellationToken token) in //src/components/Microsoft.DotNet.UpgradeAssistant/Checks/MultiTargetFrameworkCheck.cs:line 40 at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.RunChecksAsync(IProject project, CancellationToken token) at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.<>c__DisplayClass22_0.<<GetProjectAsync>g__CreateProjectCommandAsync|0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.GetProjectAsync(IUpgradeContext context, CancellationToken token) at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.ApplyImplAsync(IUpgradeContext context, CancellationToken token) at Microsoft.DotNet.UpgradeAssistant.UpgradeStep.ApplyAsync(IUpgradeContext context, CancellationToken token) in /_/src/common/Microsoft.DotNet.UpgradeAssistant.Abstractions/UpgradeStep.cs:line 178 2022-09-01 10:40:33.164 -04:00 [INF] Saving upgrade progress file at C:\Users\pmiller\Documents\Projects\RMMHub.upgrade-assistant

petemillermultimedia avatar Sep 01 '22 15:09 petemillermultimedia