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)
Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

Answer accepted by question author
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,756 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. Rajesh M 21 Reputation points
    2020-12-31T06:06:19.97+00:00

    Hi,

    Please use Nuget package manager to update the version of Xamarin Forms to the latest version. This will remove this error.

    Thanks,

    Rajesh.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.