2018-12-02 03:25:55 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project>
|
|
|
|
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
2019-09-12 20:07:08 +03:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<PackageVersion Condition=" '$(PackageVersion)' == '' ">$(Version)</PackageVersion>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2018-12-02 03:25:55 +03:00
|
|
|
<Import Project="eng\MPack.targets" />
|
2019-09-24 01:11:16 +03:00
|
|
|
<Import Project="eng\targets\Packaging.targets" />
|
2019-09-12 20:07:08 +03:00
|
|
|
<Import Project="eng\targets\Npm.Common.targets" Condition="'$(MSBuildProjectExtension)' == '.npmproj'" />
|
2019-02-22 21:24:51 +03:00
|
|
|
|
|
|
|
<!-- Workaround https://github.com/dotnet/cli/issues/10528 -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<BundledNETCorePlatformsPackageVersion>$(MicrosoftNETCorePlatformsPackageVersion)</BundledNETCorePlatformsPackageVersion>
|
|
|
|
</PropertyGroup>
|
2019-07-03 05:02:36 +03:00
|
|
|
|
2019-10-03 01:16:11 +03:00
|
|
|
<ItemGroup>
|
|
|
|
<!-- Reference base shared framework at incoming dependency flow version, not bundled sdk version. -->
|
|
|
|
<KnownFrameworkReference Update="Microsoft.NETCore.App">
|
|
|
|
<!-- Always update the 'latest version', whether the repo is servicing or not. -->
|
|
|
|
<LatestRuntimeFrameworkVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">$(MicrosoftNETCoreAppRuntimeVersion)</LatestRuntimeFrameworkVersion>
|
|
|
|
<!-- Only update the default runtime version for preview builds. -->
|
|
|
|
<DefaultRuntimeFrameworkVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' and '$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppRuntimeVersion)</DefaultRuntimeFrameworkVersion>
|
|
|
|
<!-- Only update the targeting pack version for preview builds. -->
|
|
|
|
<TargetingPackVersion Condition="'%(TargetFramework)' == '$(DefaultNetCoreTargetFramework)' and '$(IsServicingBuild)' != 'true'">$(MicrosoftNETCoreAppRefPackageVersion)</TargetingPackVersion>
|
|
|
|
</KnownFrameworkReference>
|
|
|
|
|
2019-07-03 05:02:36 +03:00
|
|
|
<!-- Track compiler separately from Arcade.-->
|
|
|
|
<PackageReference Include="Microsoft.Net.Compilers.Toolset"
|
|
|
|
Version="$(MicrosoftNetCompilersToolsetPackageVersion)"
|
|
|
|
PrivateAssets="all"
|
|
|
|
IsImplicitlyDefined="true" />
|
2019-09-21 01:37:14 +03:00
|
|
|
|
|
|
|
<!-- Remove unneeded reference to AspNetCore.App -->
|
|
|
|
<KnownFrameworkReference Remove="Microsoft.AspNetCore.App" />
|
2019-07-03 05:02:36 +03:00
|
|
|
</ItemGroup>
|
2020-11-05 04:19:41 +03:00
|
|
|
|
2021-02-05 20:30:30 +03:00
|
|
|
<!-- Global Analyzer Config -->
|
|
|
|
<ItemGroup>
|
|
|
|
<!-- Always include Common.globalconfig -->
|
|
|
|
<EditorConfigFiles Include="$(RepositoryEngineeringDir)config\globalconfigs\Common.globalconfig" />
|
|
|
|
<!-- Include Shipping.globalconfig for shipping projects -->
|
|
|
|
<EditorConfigFiles Condition="'$(IsShipping)' == 'true'" Include="$(RepositoryEngineeringDir)config\globalconfigs\Shipping.globalconfig" />
|
2021-02-12 00:48:55 +03:00
|
|
|
<!-- Include NonShipping.globalconfig for non-shipping projects, except for API shims -->
|
|
|
|
<EditorConfigFiles Condition="'$(IsShipping)' != 'true' AND '$(IsApiShim)' != 'true'" Include="$(RepositoryEngineeringDir)config\globalconfigs\NonShipping.globalconfig" />
|
2021-02-08 19:36:22 +03:00
|
|
|
<!-- Include ApiShim.globalconfig for API shim projects -->
|
|
|
|
<EditorConfigFiles Condition="'$(IsApiShim)' == 'true'" Include="$(RepositoryEngineeringDir)config\globalconfigs\ApiShim.globalconfig" />
|
2021-02-05 20:30:30 +03:00
|
|
|
</ItemGroup>
|
|
|
|
|
2021-04-22 00:23:29 +03:00
|
|
|
<!--
|
|
|
|
Where necessary, do not pretend we support iOS or Android. This file is imported after project
|
|
|
|
has a chance to set $(RemoveDevicePlatformSupport) and long after @(SupportedPlatforms) is initialized.
|
|
|
|
-->
|
|
|
|
<ItemGroup Condition=" '$(RemoveDevicePlatformSupport)' == 'true' ">
|
|
|
|
<SupportedPlatform Remove="Android" />
|
|
|
|
<SupportedPlatform Remove="iOS" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2020-11-05 04:19:41 +03:00
|
|
|
<Target Name="GetCustomAssemblyAttributes"
|
|
|
|
BeforeTargets="GetAssemblyAttributes"
|
|
|
|
Condition=" '$(MSBuildProjectExtension)' == '.csproj' "
|
|
|
|
DependsOnTargets="InitializeSourceControlInformation">
|
|
|
|
<ItemGroup>
|
|
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(Serviceable)' == 'true'">
|
|
|
|
<_Parameter1>Serviceable</_Parameter1>
|
|
|
|
<_Parameter2>True</_Parameter2>
|
|
|
|
</AssemblyAttribute>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
2019-05-29 23:06:38 +03:00
|
|
|
</Project>
|