179 строки
14 KiB
XML
179 строки
14 KiB
XML
<Project>
|
|
<Import Project="eng\Versions.props" />
|
|
|
|
<PropertyGroup>
|
|
<_MauiDotNetVersionMajor Condition="'$(_MauiDotNetVersionMajor)' == ''">8</_MauiDotNetVersionMajor>
|
|
<_MauiDotNetVersionMinor Condition="'$(_MauiDotNetVersionMinor)' == ''">0</_MauiDotNetVersionMinor>
|
|
<_MauiDotNetVersion Condition="'$(_MauiDotNetVersion)' == ''">$(_MauiDotNetVersionMajor).$(_MauiDotNetVersionMinor)</_MauiDotNetVersion>
|
|
<_MauiDotNetTfm Condition="'$(_MauiDotNetTfm)' == ''">net$(_MauiDotNetVersion)</_MauiDotNetTfm>
|
|
|
|
<_MauiPreviousDotNetVersionMajor Condition="'$(_MauiPreviousDotNetVersionMajor)' == ''">7</_MauiPreviousDotNetVersionMajor>
|
|
<_MauiPreviousDotNetVersionMinor Condition="'$(_MauiPreviousDotNetVersionMinor)' == ''">0</_MauiPreviousDotNetVersionMinor>
|
|
<_MauiPreviousDotNetVersion Condition="'$(_MauiPreviousDotNetVersion)' == ''">$(_MauiPreviousDotNetVersionMajor).$(_MauiPreviousDotNetVersionMinor)</_MauiPreviousDotNetVersion>
|
|
<_MauiPreviousDotNetVersionNoDot Condition="'$(_MauiPreviousDotNetVersionNoDot)' == ''">$(_MauiPreviousDotNetVersionMajor)$(_MauiPreviousDotNetVersionMinor)</_MauiPreviousDotNetVersionNoDot>
|
|
<_MauiPreviousDotNetTfm Condition="'$(_MauiPreviousDotNetTfm)' == ''">net$(_MauiPreviousDotNetVersion)</_MauiPreviousDotNetTfm>
|
|
|
|
<_MauiTargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</_MauiTargetPlatformIdentifier>
|
|
<_MauiNoTargetPlatform>false</_MauiNoTargetPlatform>
|
|
<_MauiNoTargetPlatform Condition="'$(_MauiTargetPlatformIdentifier)' == ''">True</_MauiNoTargetPlatform>
|
|
<_MauiTargetPlatformIsAndroid>false</_MauiTargetPlatformIsAndroid>
|
|
<_MauiTargetPlatformIsAndroid Condition="'$(_MauiTargetPlatformIdentifier)' == 'android'">True</_MauiTargetPlatformIsAndroid>
|
|
<_MauiTargetPlatformIsiOS>false</_MauiTargetPlatformIsiOS>
|
|
<_MauiTargetPlatformIsiOS Condition="'$(_MauiTargetPlatformIdentifier)' == 'ios'">True</_MauiTargetPlatformIsiOS>
|
|
<_MauiTargetPlatformIsMacCatalyst>false</_MauiTargetPlatformIsMacCatalyst>
|
|
<_MauiTargetPlatformIsMacCatalyst Condition="'$(_MauiTargetPlatformIdentifier)' == 'maccatalyst'">True</_MauiTargetPlatformIsMacCatalyst>
|
|
<_MauiTargetPlatformIsmacOS>false</_MauiTargetPlatformIsmacOS>
|
|
<_MauiTargetPlatformIsmacOS Condition="'$(_MauiTargetPlatformIdentifier)' == 'macos'">True</_MauiTargetPlatformIsmacOS>
|
|
<_MauiTargetPlatformIstvOS>false</_MauiTargetPlatformIstvOS>
|
|
<_MauiTargetPlatformIstvOS Condition="'$(_MauiTargetPlatformIdentifier)' == 'tvos'">True</_MauiTargetPlatformIstvOS>
|
|
<_MauiTargetPlatformIsWindows>false</_MauiTargetPlatformIsWindows>
|
|
<_MauiTargetPlatformIsWindows Condition="$(_MauiTargetPlatformIdentifier.Contains('windows')) == 'True'">True</_MauiTargetPlatformIsWindows>
|
|
<_MauiTargetPlatformIsTizen>false</_MauiTargetPlatformIsTizen>
|
|
<_MauiTargetPlatformIsTizen Condition="'$(_MauiTargetPlatformIdentifier)' == 'tizen'">True</_MauiTargetPlatformIsTizen>
|
|
</PropertyGroup>
|
|
|
|
<!-- Try determine which .NET workloads are installed -->
|
|
<PropertyGroup Condition="'$(CI)' != 'true' and '$(TF_BUILD)' != 'true'">
|
|
<DotNetWorkloadVersionRegex>\d+\.\d+\.\d+(-[a-z]+[\.\d+]+)?</DotNetWorkloadVersionRegex>
|
|
<DotNetSdkVersionRegex>\d+\.\d+\.\d+(-[a-z]+\.\d+)?</DotNetSdkVersionRegex>
|
|
<DotNetSdkMajorMinorVersionRegex>\d+\.\d+\.\d</DotNetSdkMajorMinorVersionRegex>
|
|
|
|
<DotNetSdkManifestVersion>$([System.Text.RegularExpressions.Regex]::Match('$(MSBuildExtensionsPath)', '$(DotNetSdkVersionRegex)'))</DotNetSdkManifestVersion>
|
|
<DotNetSdkManifestVersion>$([System.Text.RegularExpressions.Regex]::Match('$(DotNetSdkManifestVersion)', '$(DotNetSdkMajorMinorVersionRegex)'))00</DotNetSdkManifestVersion>
|
|
|
|
<DotNetWorkloadInstallLocation Condition="'$(DotNetWorkloadInstallLocation)' == '' and Exists('$(DOTNET_ROOT)\sdk-manifests\$(DotNetSdkManifestVersion)\microsoft.net.sdk.macos\WorkloadManifest.json')">$(DOTNET_ROOT)\sdk-manifests\$(DotNetSdkManifestVersion)\</DotNetWorkloadInstallLocation>
|
|
<DotNetWorkloadInstallLocation Condition="'$(DotNetWorkloadInstallLocation)' == '' and Exists('$(ProgramFiles)\dotnet\sdk-manifests\$(DotNetSdkManifestVersion)\microsoft.net.sdk.macos\WorkloadManifest.json')">$(ProgramFiles)\dotnet\sdk-manifests\$(DotNetSdkManifestVersion)\</DotNetWorkloadInstallLocation>
|
|
<DotNetWorkloadPacksInstallLocation Condition="'$(DotNetWorkloadInstallLocation)' != ''">$(DotNetWorkloadInstallLocation)..\..\packs\</DotNetWorkloadPacksInstallLocation>
|
|
|
|
<DotNetMacOSWorkloadInstalledVersion Condition="Exists('$(DotNetWorkloadInstallLocation)microsoft.net.sdk.macos\WorkloadManifest.json')">$([System.Text.RegularExpressions.Regex]::Match($([System.IO.File]::ReadAllText('$(DotNetWorkloadInstallLocation)\microsoft.net.sdk.macos\WorkloadManifest.json')), '$(DotNetWorkloadVersionRegex)'))</DotNetMacOSWorkloadInstalledVersion>
|
|
<DotNetTizenWorkloadInstalledVersion Condition="Exists('$(DotNetWorkloadInstallLocation)samsung.net.sdk.tizen\WorkloadManifest.json')">$([System.Text.RegularExpressions.Regex]::Match($([System.IO.File]::ReadAllText('$(DotNetWorkloadInstallLocation)\samsung.net.sdk.tizen\WorkloadManifest.json')), $(DotNetWorkloadVersionRegex)))</DotNetTizenWorkloadInstalledVersion>
|
|
|
|
<DotNetMacOSWorkloadIsInstalled Condition="Exists('$(DotNetWorkloadPacksInstallLocation)Microsoft.macOS.Sdk\$(DotNetMacOSWorkloadInstalledVersion)\Sdk\AutoImport.props')">true</DotNetMacOSWorkloadIsInstalled>
|
|
<DotNetTizenWorkloadIsInstalled Condition="Exists('$(DotNetWorkloadPacksInstallLocation)Samsung.Tizen.Sdk\$(DotNetTizenWorkloadInstalledVersion)\Sdk\AutoImport.props')">true</DotNetTizenWorkloadIsInstalled>
|
|
|
|
<IncludeWindowsTargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows')) or '$(Packing)' == 'true'">true</IncludeWindowsTargetFrameworks>
|
|
<IncludeMacOSTargetFrameworks Condition="'$(DotNetMacOSWorkloadIsInstalled)' == 'true'">true</IncludeMacOSTargetFrameworks>
|
|
<IncludeTizenTargetFrameworks Condition="'$(DotNetTizenWorkloadIsInstalled)' == 'true'">true</IncludeTizenTargetFrameworks>
|
|
<IncludeAndroidTargetFrameworks>true</IncludeAndroidTargetFrameworks>
|
|
<IncludeMacCatalystTargetFrameworks>true</IncludeMacCatalystTargetFrameworks>
|
|
<IncludeIosTargetFrameworks>true</IncludeIosTargetFrameworks>
|
|
<IncludeCompatibilityProjects>false</IncludeCompatibilityProjects>
|
|
<IncludeCompatibilityProjects Condition="'$(SolutionFileName)' == 'Microsoft.Maui.sln'">true</IncludeCompatibilityProjects>
|
|
</PropertyGroup>
|
|
|
|
<!-- this is CI, so everything should be there -->
|
|
<PropertyGroup Condition="'$(CI)' == 'true' or '$(TF_BUILD)' == 'true'">
|
|
<IncludeWindowsTargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">true</IncludeWindowsTargetFrameworks>
|
|
<IncludeTizenTargetFrameworks>true</IncludeTizenTargetFrameworks>
|
|
<IncludeMacOSTargetFrameworks>true</IncludeMacOSTargetFrameworks>
|
|
<IncludeAndroidTargetFrameworks>true</IncludeAndroidTargetFrameworks>
|
|
<IncludeMacCatalystTargetFrameworks>true</IncludeMacCatalystTargetFrameworks>
|
|
<IncludeIosTargetFrameworks>true</IncludeIosTargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<DefineConstants Condition="'$(_MauiTargetPlatformIsWindows)' == 'True'">$(DefineConstants);WINDOWS</DefineConstants>
|
|
<DefineConstants Condition="'$(IncludeCompatibilityProjects)' == 'True'">$(DefineConstants);COMPATIBILITY_ENABLED</DefineConstants>
|
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
|
<!-- <GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles> -->
|
|
<!-- HACK: WinUI seems to have issues without this -->
|
|
<GenerateLibraryLayout>true</GenerateLibraryLayout>
|
|
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
|
|
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
|
|
</PropertyGroup>
|
|
|
|
<!-- version number information -->
|
|
<PropertyGroup>
|
|
<IosTargetFrameworkVersion>13.6</IosTargetFrameworkVersion>
|
|
<TvosTargetFrameworkVersion>13.6</TvosTargetFrameworkVersion>
|
|
<MacCatalystTargetFrameworkVersion>13.5</MacCatalystTargetFrameworkVersion>
|
|
<MacosTargetFrameworkVersion>10.14</MacosTargetFrameworkVersion>
|
|
<AndroidTargetFrameworkVersion>30.0</AndroidTargetFrameworkVersion>
|
|
<WindowsTargetFrameworkVersion>10.0.19041</WindowsTargetFrameworkVersion>
|
|
<Windows2TargetFrameworkVersion>10.0.20348</Windows2TargetFrameworkVersion>
|
|
<TizenTargetFrameworkVersion>6.5</TizenTargetFrameworkVersion>
|
|
</PropertyGroup>
|
|
|
|
<Import Condition="Exists('Directory.Build.Override.props')" Project="Directory.Build.Override.props" />
|
|
|
|
<PropertyGroup>
|
|
<!-- the real TFMs -->
|
|
<WindowsMauiPlatforms Condition="'$(WindowsMauiPlatforms)' == ''">net$(_MauiDotNetVersion)-windows$(WindowsTargetFrameworkVersion);net$(_MauiDotNetVersion)-windows$(Windows2TargetFrameworkVersion)</WindowsMauiPlatforms>
|
|
|
|
<MauiPlatforms Condition="'$(IncludeTizenTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-tizen;$(MauiPlatforms)</MauiPlatforms>
|
|
<MauiPlatforms Condition="'$(IncludeWindowsTargetFrameworks)' == 'true'">$(WindowsMauiPlatforms);$(MauiPlatforms)</MauiPlatforms>
|
|
<MauiPlatforms Condition="'$(IncludeAndroidTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-android;$(MauiPlatforms)</MauiPlatforms>
|
|
<MauiPlatforms Condition="'$(IncludeMacCatalystTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-maccatalyst;$(MauiPlatforms)</MauiPlatforms>
|
|
<MauiPlatforms Condition="'$(IncludeIosTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-ios;$(MauiPlatforms)</MauiPlatforms>
|
|
|
|
<!-- Device Tests TFMs (no Tizen yet) -->
|
|
<MauiDeviceTestsPlatforms Condition="'$(IncludeWindowsTargetFrameworks)' == 'true'">$(WindowsMauiPlatforms);$(MauiDeviceTestsPlatforms)</MauiDeviceTestsPlatforms>
|
|
<MauiDeviceTestsPlatforms Condition="'$(IncludeAndroidTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-android;$(MauiDeviceTestsPlatforms)</MauiDeviceTestsPlatforms>
|
|
<MauiDeviceTestsPlatforms Condition="'$(IncludeMacCatalystTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-maccatalyst;$(MauiDeviceTestsPlatforms)</MauiDeviceTestsPlatforms>
|
|
<MauiDeviceTestsPlatforms Condition="'$(IncludeIosTargetFrameworks)' == 'true'">net$(_MauiDotNetVersion)-ios;$(MauiDeviceTestsPlatforms)</MauiDeviceTestsPlatforms>
|
|
|
|
<!-- Graphics TFMs -->
|
|
<MauiGraphicsPlatforms>$(MauiPlatforms)</MauiGraphicsPlatforms>
|
|
<MauiGraphicsPlatforms Condition="'$(IncludeMacOSTargetFrameworks)' == 'true'">$(MauiGraphicsPlatforms);net$(_MauiDotNetVersion)-macos</MauiGraphicsPlatforms>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<MauiRootDirectory>$(MSBuildThisFileDirectory)</MauiRootDirectory>
|
|
<MauiSrcDirectory>$(MSBuildThisFileDirectory)src/</MauiSrcDirectory>
|
|
<DotNetOutputPath>$(MSBuildThisFileDirectory)bin/</DotNetOutputPath>
|
|
<DotNetTempDirectory>$(DotNetOutputPath)temp/</DotNetTempDirectory>
|
|
<DotNetDirectory>$(DotNetOutputPath)dotnet/</DotNetDirectory>
|
|
<DotNetToolPath>$(DotNetDirectory)dotnet</DotNetToolPath>
|
|
<DotNetPacksDirectory>$(DotNetDirectory)packs/</DotNetPacksDirectory>
|
|
<DotNetLibraryPacksDirectory>$(DotNetDirectory)library-packs/</DotNetLibraryPacksDirectory>
|
|
<DotNetSdkManifestsDirectory>$(DotNetDirectory)sdk-manifests/$(DotNetSdkManifestsFolder)/</DotNetSdkManifestsDirectory>
|
|
<DotNetTemplatePacksDirectory>$(DotNetDirectory)template-packs/</DotNetTemplatePacksDirectory>
|
|
<_MauiBuildTasksLocation>$(_MauiBuildTasksLocation)</_MauiBuildTasksLocation>
|
|
<_MauiBuildTasksLocation Condition="'$(_MauiBuildTasksLocation)' == ''">$(MSBuildThisFileDirectory).buildtasks\</_MauiBuildTasksLocation>
|
|
<_MauiAOTProfileLocation>$(MauiSrcDirectory)Controls\src\Build.Tasks\nuget\buildTransitive\netstandard2.0\</_MauiAOTProfileLocation>
|
|
<StrongNamerKeyFile>$(MauiRootDirectory)eng/microsoft.maui.controls.snk</StrongNamerKeyFile>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<DebugType>portable</DebugType>
|
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
<IncludeSymbols>true</IncludeSymbols>
|
|
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
|
<Company>Microsoft</Company>
|
|
<Product>Microsoft MAUI</Product>
|
|
<ProduceReferenceAssembly Condition="'$(UsingMicrosoftNETSdk)' == 'True' AND '$(Configuration)' == 'Debug'">True</ProduceReferenceAssembly>
|
|
<ProduceReferenceAssemblyInOutDir>True</ProduceReferenceAssemblyInOutDir>
|
|
<Win2DWarnNoPlatform>false</Win2DWarnNoPlatform>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<GitDefaultBranch>main</GitDefaultBranch>
|
|
</PropertyGroup>
|
|
<PropertyGroup>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<Authors>Microsoft</Authors>
|
|
<NeutralLanguage>en</NeutralLanguage>
|
|
<RepositoryUrl>https://github.com/dotnet/maui.git</RepositoryUrl>
|
|
<PackageProjectUrl>https://github.com/dotnet/maui</PackageProjectUrl>
|
|
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
|
|
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
|
|
<PackageVersion>$(DotNetVersionBand)-dev</PackageVersion>
|
|
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts</PackageOutputPath>
|
|
<LicenseFile>$(MSBuildThisFileDirectory)LICENSE.TXT</LicenseFile>
|
|
<PackageThirdPartyNoticesFile>$(MSBuildThisFileDirectory)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
|
|
<ContinuousIntegrationBuild Condition=" '$(CI)' == 'true' ">true</ContinuousIntegrationBuild>
|
|
</PropertyGroup>
|
|
<!-- This target is replaced by GitInfo when restored. Allows Versions.targets to rely on it before restore. -->
|
|
<Target Name="GitVersion" />
|
|
<Target Name="GitInfo" />
|
|
<Import Condition="'$(EnvironmentBuildPropsImported)' != 'True'" Project="$(MSBuildThisFileDirectory)eng\Environment.Build.props" />
|
|
<Import Condition="'$(SampleProject)' != 'True' and '$(CI)' == 'true'" Project="$(MSBuildThisFileDirectory)eng\SourceLink.Build.props" />
|
|
<ItemGroup Condition="'$(MSBuildVersion)' != '' AND '$(MSBuildVersion)' < '16.7.0' ">
|
|
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="4.6.0" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<!-- We don't need to be warned that we are using a preview .NET -->
|
|
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
|
|
<!-- Disables the transitive restore of packages like Microsoft.AspNetCore.App.Ref, Microsoft.WindowsDesktop.App.Ref -->
|
|
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
|
|
</PropertyGroup>
|
|
</Project>
|