TargetPlatformVersion Error

Borisoprit 371 Reputation points
2020-12-26T14:22:48.44+00:00

I have an Error on some of the projects , when i build it.

I selected Android and iOs when i made the project

Made a lot of projects but this is the first time i see this .How can i fix this ?

1>C:\Users\......\.nuget\packages\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets(232,5): warning : Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1)

1>C:\Users\......\.nuget\packages\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets(238,5): warning : Xamarin.Forms recommends TargetPlatformVersion >= 10.0.17763.0 (current project is -1)
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2020-12-29T06:56:46.823+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Try to uninstall and reinstall Xamarin.essentials.

    Check the similar issue : https://learn.microsoft.com/en-us/answers/questions/171259/setting-targetplatformminversion.html .

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 additional answers

Sort by: Most helpful
  1. Alessandro Caliaro 4,181 Reputation points
    2020-12-26T15:24:52.623+00:00

    It seems you have not selected the target platform in your android project. Go to android project’s properties and choose the target platform

    0 comments No comments

  2. Borisoprit 371 Reputation points
    2020-12-28T19:48:39.16+00:00

    Every time i make a new project is see the error .

    This is oke i think ?

    51792-android.jpg

    0 comments No comments

  3. Borisoprit 371 Reputation points
    2020-12-28T19:49:58.257+00:00

    These are the standerd items when start a new one on my Visual Studio

    0 comments No comments

  4. Borisoprit 371 Reputation points
    2020-12-29T15:53:39.737+00:00

    ColeXia,

    I removed Xamarin.Essentials and installed again , but no luck.

    When update also no luck.

    Visual Studio version 16.8.3

    1.5.3.2 Xamarin.Essentials the update to 1.60

    Xamarin.Forms 4.8.0.1821

    0 comments No comments