davidortinau / WeatherTwentyOne

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running the sample WeatherTwentyOne project

saramgsilva opened this issue · comments

Hello everyone,

sorry about my question, but I got many issues when I tried to run the WeatherTwentyOne project, I missed something for sure... can help? I would like to run for now using Android Platform. Maybe I am confuse, and I should run dotnet commands to update something, not sure...

Severity Code Description Project File Line Suppression State
Error NETSDK1045 The current .NET SDK does not support targeting .NET 6.0. Either target .NET 5.0 or lower, or use a version of the .NET SDK that supports .NET 6.0. WeatherTwentyOne.WinUI C:\Program Files\dotnet\sdk\5.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 141

Severity Code Description Project File Line Suppression State
Error NETSDK1139 The target platform identifier android was not recognized. WeatherTwentyOne C:\Program Files\dotnet\sdk\5.0.400\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 109

See the image:

image

HI,
i have same problem too.
Is there a fix for it?

Use VS 2022 Preview. Yours look like VS 2019