fsprojects / fsprojects/Paket

Paket commands fail on MAUI projects

Open
#4,148 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

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

  1. create new maui project dotnet new maui -o PaketTest

  2. 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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with dotnet new maui -o PaketTest, then run paket convert-from-nuget and paket restore for the generated project. Start at .paket/Paket.Restore.targets around line 218 and trace handling of the net6.0-maccatalyst target framework; done means Paket commands and dotnet restore complete successfully for the MAUI project.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.