refit icon indicating copy to clipboard operation
refit copied to clipboard

Packages.config does not support Analyzers, including Source Generators. Migrate to PackageReference

Open fusionconsulting opened this issue 3 years ago • 2 comments

Describe the bug I have added a Xamarin.Mac target to an existing iOS/Android solution and when building for Mac I hit the following error:

Packages.config does not support Analyzers, including Source Generators. Migrate to PackageReference: 'https://devblogs.microsoft.com/nuget/migrate-packages-config-to-package-reference/'

Steps To Reproduce Add Xamarin.Mac target by following these steps:

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/other/mac#:~:text=Adding%20a%20Mac%20App,-Follow%20these%20instructions&text=In%20Visual%20Studio%20for%20Mac,Item)%2C%20then%20press%20Next.

Expected behavior Build and run like iOS/Android

Environment Mac OS 12.2.1 Visual Studio 8.10.19

fusionconsulting avatar Feb 22 '22 14:02 fusionconsulting

The error message is accurate, you need to migrate to PackageReference.

clairernovotny avatar Feb 22 '22 22:02 clairernovotny

How do i migrate from package config to package reference in visual studio mac 2022 ? It would be great if you can share some links to solve this issue.

AnjaneyuluUppalapati avatar Sep 26 '22 12:09 AnjaneyuluUppalapati