Paket
Paket copied to clipboard
Paket commands fail on MAUI projects
Description
Paket commands fail with message on maui projects
Extracting platforms from path 'net6.0-maccatalyst' failed, a newer Paket version might support it, otherwise please open an issue for a missing platform handle
Repro steps
Please provide the steps required to reproduce the problem
-
create new maui project
dotnet new maui -o PaketTest -
run any Paket command eg.
paket convert-from-nuget
Expected behavior
Paket command to complete successfully
Actual behavior
Paket command fails. Output of one run below
paket convert-from-nuget
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Solution /Users/hevey/Development/temp/PaketTest/PaketTest.sln changed
Resolving dependency graph...
Installing into projects:
Created dependency graph (0 packages in total)
Calling dotnet restore on PaketTest.sln
Determining projects to restore...
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
The last full restore is still up to date. Nothing left to do.
Total time taken: 0 milliseconds
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Restoring /Users/hevey/Development/temp/PaketTest/PaketTest.csproj
Total time taken: 0 milliseconds
Paket failed with
-> Extracting platforms from path 'net6.0-maccatalyst' failed, a newer Paket version might support it, otherwise please open an issue for a missing platform handler.
/Users/hevey/Development/temp/PaketTest/.paket/Paket.Restore.targets(218,5): error MSB3073: The command ""paket" restore --project "/Users/hevey/Development/temp/PaketTest/PaketTest.csproj" --output-path "obj" --target-framework "net6.0-android;net6.0-ios;net6.0-maccatalyst"" exited with code 1. [/Users/hevey/Development/temp/PaketTest/PaketTest.csproj]
Total time taken: 17 milliseconds
Paket failed with
-> dotnet restore "PaketTest.sln" failed
Known workarounds
N/A
If you don't need to build for Mac, then you can remove net6.0-maccatalyst from the project-file and then it seems to work.