TargetPlatformVersion is -1

Adoo 1 Reputation point
2020-12-10T12:19:55.693+00:00

Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1) App1 C:\Microsoft\Xamarin\NuGet\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets 232

Xamarin.Forms recommends TargetPlatformVersion >= 10.0.17763.0 (current project is -1) App1 C:\Microsoft\Xamarin\NuGet\xamarin.forms\4.8.0.1451\buildTransitive\Xamarin.Forms.targets 238

I clean installed all packages and the SDK and after creating a project I got those warnings. How can I solve this?

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JarvanZhang 23,971 Reputation points
    2020-12-10T13:33:54.02+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Hi, what's the version of the VS on your pc? Someone faced the similar issue with Visual Studio Pro 16.8.1, the solution is to update the Xamarin.Forms package to the lastest stable version. Case link:https://developercommunity.visualstudio.com/comments/1257384/view.html

    Try updating the nuget to the lastest statable version, then clean and rebuild.

    Best Regards,

    Jarvan Zhang


    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.

    0 comments No comments

  2. AUU 1 Reputation point
    2021-01-25T16:56:08.167+00:00

    I had the same issue. I upgraded the Forms / Essentials to latest versions (5.0.0.1905 , 1.6). Now my warnings have changed to the below. Any ideas why ?

    60302-image.png


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.