1 year ago
#201829
Sam
Changing target framework of class library
I have a class library that currently targets .Net Standard 2.1. When I created the project, I had set it to 2.1 not necessarily for a particular reason. I was being overzealous.
Now I want to use it in a Xamarin project but I keep getting an error stating that Xamarin project can’t use a 2.1 project because Xamarin project targets .Net Standard 2.0.
So I changed the target framework to 2.0 in my class library’s project file and recompiled it but Xamarin project is still rejecting it for the same reason.
Is there anything else I need to do to change the target framework of a class library project?
c#
xamarin
.net-standard
class-library
.net-standard-2.1
0 Answers
Your Answer