danroth27 / BlazorWeather

Blazor Weather
https://aka.ms/blazorweather
MIT License
247 stars 57 forks source link

Problem with windows buid #30

Open AlexNek opened 3 years ago

AlexNek commented 3 years ago

could you add the note, please "you need to select windows in two places" and picture from https://github.com/dotnet/maui/issues/2493 picture as changes doesn't work for me. Possible there is better solution

isaacrlevin commented 3 years ago

Following the steps there did it for me... Here is my csproj

<!-- iOS, Android, MacCatalyst -->
<!--<TargetFrameworks>net6.0-ios;net6.0-android;net6.0-maccatalyst</TargetFrameworks>-->
<TargetFrameworks>net6.0-ios;net6.0-android;net6.0-maccatalyst;net6.0-windows10.0.19041</TargetFrameworks>
<!--<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net6.0-windows10.0.19041</TargetFrameworks>-->
AlexNek commented 3 years ago

For me it doesn't work. When I try to switch from android to windows 2021-10-02_12-07-29 framework is not changed 2021-10-02_12-03-41

Are you lucky with deployment? 2021-10-02_12-11-10

Publish doesn't work too. And I can not find iOS simulator for windows