Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Donghuan-He/WeatherApp.csproj
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
76 lines (60 sloc)
3.15 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFrameworks>net8.0-android</TargetFrameworks> | |
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) and '$(MSBuildRuntimeType)' == 'Full'">$(TargetFrameworks);net8.0-windows10.0.19041</TargetFrameworks> | |
<OutputType>Exe</OutputType> | |
<RootNamespace>WeatherApp</RootNamespace> | |
<UseMaui>true</UseMaui> | |
<SingleProject>true</SingleProject> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling> | |
<!-- Display name --> | |
<ApplicationTitle>WeatherApp</ApplicationTitle> | |
<!-- App Identifier --> | |
<ApplicationId>com.companyname.weatherapp</ApplicationId> | |
<ApplicationId Condition="$(TargetFramework.Contains('-windows'))">09B3ADEC-8DC3-44BC-B0EF-C28246609247</ApplicationId> | |
<!-- Versions --> | |
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> | |
<ApplicationVersion>1</ApplicationVersion> | |
<!-- Required for C# Hot Reload --> | |
<UseInterpreter Condition="'$(Configuration)' == 'Debug'">True</UseInterpreter> | |
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-ios'">14.2</SupportedOSPlatformVersion> | |
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-maccatalyst'">14.0</SupportedOSPlatformVersion> | |
<SupportedOSPlatformVersion Condition="'$(TargetFramework)' == 'net8.0-android'">21.0</SupportedOSPlatformVersion> | |
<SupportedOSPlatformVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</SupportedOSPlatformVersion> | |
<TargetPlatformMinVersion Condition="$(TargetFramework.Contains('-windows'))">10.0.17763.0</TargetPlatformMinVersion> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- App Icon --> | |
<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appiconfg.svg" Color="#512BD4" /> | |
<!-- Splash Screen --> | |
<MauiSplashScreen Include="Resources\appiconfg.svg" Color="#512BD4" BaseSize="128,128" /> | |
<!-- Images --> | |
<MauiImage Include="Resources\Images\*" /> | |
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> | |
<!-- Custom Fonts --> | |
<MauiFont Include="Resources\Fonts\*" /> | |
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> | |
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | |
</ItemGroup> | |
<ItemGroup Condition="$(TargetFramework.Contains('-windows'))"> | |
<!-- Required - WinUI does not yet have buildTransitive for everything --> | |
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240311000" /> | |
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.2.0" /> | |
</ItemGroup> | |
<ItemGroup> | |
<None Remove="Resources\Images\cloudiness.png" /> | |
<None Remove="Resources\Images\humidity.png" /> | |
<None Remove="Resources\Images\overlay.png" /> | |
<None Remove="Resources\Images\pressure.png" /> | |
<None Remove="Resources\Images\weather.png" /> | |
<None Remove="Resources\Images\wind.png" /> | |
</ItemGroup> | |
<ItemGroup> | |
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> | |
</ItemGroup> | |
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))"> | |
<OutputType>WinExe</OutputType> | |
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> | |
</PropertyGroup> | |
</Project> |