Welcome to mirror list, hosted at ThFree Co, Russian Federation.

packaging.props « eng - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 46675f87bb3cc4767bf86ef30f63703ed2f19172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Project>
  <PropertyGroup>
    <PackageReportDir Condition="'$(PackageReportDir)' == ''">$([MSBuild]::NormalizeDirectory('$(ArtifactsPackagesDir)', 'reports'))</PackageReportDir>
    <PackageDescriptionFile>$(PkgDir)descriptions.json</PackageDescriptionFile>
    <PackageLicenseFile>$(RepoRoot)LICENSE.TXT</PackageLicenseFile>
    <PackageThirdPartyNoticesFile>$(RepoRoot)THIRD-PARTY-NOTICES.TXT</PackageThirdPartyNoticesFile>
    <ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
    <ProjectUrl Condition="'$(ProjectUrl)' == ''">https://github.com/dotnet/runtime</ProjectUrl>
    <Copyright>$(CopyrightNetFoundation)</Copyright>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
    <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
    <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>

    <!-- By default the packaging targets will package desktop facades as ref,
         but we don't use this as we now build partial-reference-facades. -->
    <PackageDesktopAsRef>false</PackageDesktopAsRef>

    <!-- We're currently not building a "live" baseline, instead we're using .NETCore 1.0 RTM stable versions as the baseline -->
    <SkipBaseLineCheck>true</SkipBaseLineCheck>

    <!-- by default all packages will use the same version which revs with respect to product version -->
    <PackageVersion Condition="'$(PackageVersion)' == ''">$(ProductVersion)</PackageVersion>
    <!-- major.minor.release version of the platforms package we're currently building
         Pre-release will be appended during build -->
    <PlatformPackageVersion>5.0.4</PlatformPackageVersion>
    <SkipValidatePackageTargetFramework>true</SkipValidatePackageTargetFramework>
    <SkipGenerationCheck>true</SkipGenerationCheck>
  </PropertyGroup>

  <PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
    <!-- Don't build referenced projects -->
    <BuildPackageLibraryReferences>false</BuildPackageLibraryReferences>
    <!-- Omit any files that were not built -->
    <AllowPartialPackages>true</AllowPartialPackages>
    <!-- Don't permit harvesting since this requires pre-builts -->
    <HarvestStablePackage>false</HarvestStablePackage>
    <!-- Validation will fail in case we were relying on harvested assets or assets not built to satisfy stated support -->
    <SkipValidatePackage>true</SkipValidatePackage>
  </PropertyGroup>

  <Import Condition="Exists('$(PkgDir)baseline\baseline.props') and '$(MSBuildProjectExtension)' == '.pkgproj'" Project="$(PkgDir)baseline\baseline.props" />

  <PropertyGroup Condition="'$(OsEnvironment)'=='Unix'">
    <!--
      Building packages fails for two reasons.
      First, nuget doesn't like the paths in the nuspec having backslashes as directory separators.
      Second, we aren't yet building pdbs, which the nuspecs specify.
    -->
    <SkipBuildPackages>true</SkipBuildPackages>
  </PropertyGroup>

  <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
    <!-- Add required legal files to packages -->
    <File Condition="Exists('$(PackageLicenseFile)')"
          Include="$(PackageLicenseFile)" >
        <SkipPackageFileCheck>true</SkipPackageFileCheck>
    </File>
    <File Condition="Exists('$(PackageThirdPartyNoticesFile)')"
          Include="$(PackageThirdPartyNoticesFile)" >
        <SkipPackageFileCheck>true</SkipPackageFileCheck>
    </File>

    <!-- Add version file to packages -->
    <File Condition="Exists('$(VersionFileForPackages)')"
          Include="$(VersionFileForPackages)">
        <SkipPackageFileCheck>true</SkipPackageFileCheck>
    </File>

    <!-- Add a marker to help the designer optimize & share .NET Core packages -->
    <File Condition="'$(IncludeDesignerMarker)' != 'false'"
          Include="$(PkgDir)useSharedDesignerContext.txt">
        <SkipPackageFileCheck>true</SkipPackageFileCheck>
    </File>

    <!-- Make sure that NETStandard.Library package never gets added as a dependency for .NET 4.6.1 -->
    <SuppressMetaPackage Include="NETStandard.Library" TargetFramework="net461" />
  </ItemGroup>
</Project>