Description
Unable to set up paket with visual studio for mac on macOS.
Repro steps
-
Create a Xamarin.Forms blank project in visual studio for mac
-
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
-
cd to the root of the project. run paket convert-from-nuget.
-
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.
Description
Unable to set up paket with visual studio for mac on macOS.
Repro steps
Create a Xamarin.Forms blank project in visual studio for mac
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
cd to the root of the project. run
paket convert-from-nuget.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
.vsfolder. Go intoobjfolder for all projects. DeleteXamarinApp.csproj.nuget.g.props,XamarinApp.csproj.nuget.g.targetsfiles. Restart. Now the project will run.