[Tizen] Disable jithost arena cache
[platform/upstream/dotnet/runtime.git] / Directory.Build.targets
1 <Project>
2   <PropertyGroup>
3     <!--
4     For non-SDK projects that import this file and then import Microsoft.Common.targets,
5     tell Microsoft.Common.targets not to import Directory.Build.targets again
6     -->
7     <ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
8   </PropertyGroup>
9
10   <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
11   <Import Project="$(RepositoryEngineeringDir)liveBuilds.targets" />
12   <Import Project="$(RepositoryEngineeringDir)python.targets" />
13
14   <PropertyGroup>
15     <!--
16       Define this here (not just in Versions.props) because the SDK resets it
17       unconditionally in Microsoft.NETCoreSdk.BundledVersions.props.
18     -->
19     <NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion>
20     <EnableNETAnalyzers Condition="'$(EnableAnalyzers)' != 'true'">false</EnableNETAnalyzers>
21     <!-- SDK sets product to assembly but we want it to be our product name -->
22     <Product>Microsoft%AE .NET</Product>
23     <!-- Use the .NET product branding version for informational version description -->
24     <InformationalVersion Condition="'$(InformationalVersion)' == '' and '$(VersionSuffix)' == ''">$(ProductVersion)</InformationalVersion>
25     <InformationalVersion Condition="'$(InformationalVersion)' == '' and '$(VersionSuffix)' != ''">$(ProductVersion)-$(VersionSuffix)</InformationalVersion>
26   </PropertyGroup>
27   
28   <!-- The Default behavior in VS is to show files for the first target framework in TargetFrameworks property.
29        This is required to show all the files corresponding to all target frameworks in VS. -->
30   <ItemGroup Condition="'$(DefaultLanguageSourceExtension)' != '' and
31                         ('$(BuildingInsideVisualStudio)' == 'true' or '$(DesignTimeBuild)' == 'true')">
32     <None Include="$(MSBuildProjectDirectory)\**\*$(DefaultLanguageSourceExtension)"
33           Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(Compile)" />
34   </ItemGroup>
35
36   <!-- Packaging -->
37   <ItemGroup Condition="'$(IsPackable)' == 'true'">
38     <!-- The sfxproj files add the license themselves. -->
39     <None Include="$(LicenseFile)"
40           PackagePath="$([System.IO.Path]::GetFileName('$(LicenseFile)'))"
41           Pack="true"
42           Condition="'$(MSBuildProjectExtension)' != '.sfxproj' and '$(MSBuildProjectFile)' != 'msi.csproj'" />
43     <None Include="$(PackageThirdPartyNoticesFile)"
44           PackagePath="$([System.IO.Path]::GetFileName('$(PackageThirdPartyNoticesFile)'))"
45           Pack="true" />
46   </ItemGroup>
47
48   <PropertyGroup>
49     <PackageDescription Condition="'$(PackageDescription)' == '' and '$(Description)' != ''">$(Description)</PackageDescription>
50     <RuntimePackageDisclaimer>Internal implementation package not meant for direct consumption. Please do not reference directly.</RuntimePackageDisclaimer>
51     <UseRuntimePackageDisclaimer Condition="'$(UseRuntimePackageDisclaimer)' == '' and
52                                             ($(MSBuildProjectName.StartsWith('runtime.native')) or '$(PackageTargetRuntime)' != '')">true</UseRuntimePackageDisclaimer>
53     <PackageDescription Condition="'$(PackageDescription)' != '' and '$(UseRuntimePackageDisclaimer)' == 'true'">$(RuntimePackageDisclaimer) %0A$(PackageDescription)</PackageDescription>
54     <PackageDescription Condition="'$(PackageDescription)' == '' and '$(UseRuntimePackageDisclaimer)' == 'true'">$(RuntimePackageDisclaimer)</PackageDescription>
55     <!-- Keep in sync as required by the Packaging SDK in Arcade. -->
56     <Description>$(PackageDescription)</Description>
57   </PropertyGroup>
58
59   <!--
60     Arcade SDK versioning is defined by static properties in a targets file: work around this by
61     moving properties based on versioning into a target.
62   -->
63   <Target Name="GetProductVersions">
64     <PropertyGroup>
65       <IncludePreReleaseLabelInPackageVersion Condition="'$(DotNetFinalVersionKind)' != 'release'">true</IncludePreReleaseLabelInPackageVersion>
66       <IncludePreReleaseLabelInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludePreReleaseLabelInPackageVersion>
67       <IncludePreReleaseLabelInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludePreReleaseLabelInPackageVersion>
68
69       <IncludeBuildNumberInPackageVersion Condition="'$(StabilizePackageVersion)' != 'true'">true</IncludeBuildNumberInPackageVersion>
70       <IncludeBuildNumberInPackageVersion Condition="'$(SuppressFinalPackageVersion)' == 'true'">true</IncludeBuildNumberInPackageVersion>
71       <IncludeBuildNumberInPackageVersion Condition="'$(IsShipping)' != 'true'">true</IncludeBuildNumberInPackageVersion>
72
73       <ProductVersionSuffix Condition="'$(IncludePreReleaseLabelInPackageVersion)' == 'true'">-$(VersionSuffix)</ProductVersionSuffix>
74       <ProductBandVersion Condition="'$(ProductBandVersion)' == ''">$(MajorVersion).$(MinorVersion)</ProductBandVersion>
75       <ProductionVersion Condition="'$(ProductionVersion)' == ''">$(ProductBandVersion).$(PatchVersion)</ProductionVersion>
76       <ProductVersion>$(ProductionVersion)$(ProductVersionSuffix)</ProductVersion>
77
78       <SharedFrameworkNugetVersion>$(ProductVersion)</SharedFrameworkNugetVersion>
79       <NuGetVersion>$(SharedFrameworkNugetVersion)</NuGetVersion>
80       <InstallersRelativePath>Runtime/$(SharedFrameworkNugetVersion)/</InstallersRelativePath>
81
82       <!--
83         By default, we are always building the nuget packages for HostPolicy, HostFXR and
84         Dotnet/AppHost. Thus, the properties (below) are always set to $(ProductVersion).
85         However, there are scenarios when only some of these components will change (e.g. during
86         servicing, we may only change HostPolicy but not HostFXR and Dotnet/AppHost). In such cases,
87         pass the appropriate version value(s) as argument to the build command in order to override;
88         e.g. 'build -p:HostPolicyVersion=x.y.z ...'
89       -->
90       <HostVersion Condition="'$(HostVersion)' == ''">$(ProductVersion)</HostVersion>
91       <AppHostVersion Condition="'$(AppHostVersion)' == ''">$(ProductVersion)</AppHostVersion>
92       <HostResolverVersion Condition="'$(HostResolverVersion)' == ''">$(ProductVersion)</HostResolverVersion>
93       <HostPolicyVersion Condition="'$(HostPolicyVersion)' == ''">$(ProductVersion)</HostPolicyVersion>
94     </PropertyGroup>
95   </Target>
96 </Project>