Skip to content

Unable to set up paket with visual studio for mac on macOS #3594

Description

@Lelelo1

Description

Unable to set up paket with visual studio for mac on macOS.

Repro steps

  1. Create a Xamarin.Forms blank project in visual studio for mac

  2. Download some nuget packages:
    Xamarin.Forms (already included by xamarin.forms project)
    Xamarin.Essentials (already included by xamarin.forms project)
    Newtonsoft.Json
    CompareNETObjects
    Microsoft.CSharp

  3. cd to the root of the project. run paket convert-from-nuget.

  4. run the Xamarin.Forms project

Expected behavior

The project should run with no problems.

Actual behavior

The project fails with the build error: "Xamarin.Forms targets have been imported multiple times. Please check your project file and remove the duplicate import(s) (XF001)"

Known workarounds

Show hidden files in project root. delete .vs folder. Go into obj folder for all projects. Delete XamarinApp.csproj.nuget.g.props, XamarinApp.csproj.nuget.g.targets files. Restart. Now the project will run.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions