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

Microsoft.Private.PackageBaseline.pkgproj « Microsoft.Private.PackageBaseline « pkg - github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5c9dd1f1be6f7d6eda40d26862e64131c0e3ef25 (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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  
  <PropertyGroup>
    <PackageVersion>2.2.0</PackageVersion>
    <HarvestStablePackage>false</HarvestStablePackage>
    <SkipPackageFileCheck>true</SkipPackageFileCheck>
    <PackageIndexFileName>packageIndex.json</PackageIndexFileName>
  </PropertyGroup>
  
  <ItemGroup>
    <File Include="Microsoft.Private.PackageBaseline.props">
      <TargetPath>build</TargetPath>
    </File>
    <File Include="$(IntermediateOutputPath)$(PackageIndexFileName)">
      <TargetPath>build</TargetPath>
    </File>
  </ItemGroup>
  
  <!-- Stamp the packageIndex with pre-release version for this build -->
  <Target Name="StampPackageIndex" BeforeTargets="GenerateNuSpec">
    <MakeDir Directories="$(IntermediateOutputPath)" />
    <Copy SourceFiles="$(PackageIndexFileName)" DestinationFolder="$(IntermediateOutputPath)" OverwriteReadOnlyFiles="true" />
    
    <UpdatePackageIndex PackageIndexFile="$(IntermediateOutputPath)$(PackageIndexFileName)"
                        PreRelease="$(VersionSuffix)" />
  </Target>
  
  <Target Name="UpdateFromLocalBuild">
    <ItemGroup>
      <AllPackages Include="$(PackageOutputPath)\*.nupkg" Exclude="$(PackageOutputPath)\*Microsoft.Private.*.nupkg" />
      <FrameworkLayout Include="$(NETCoreAppPackageRefPath)">
        <TargetFramework>netcoreapp2.0</TargetFramework>
      </FrameworkLayout>
      <FrameworkLayout Include="$(UAPPackageRefPath)">
        <TargetFramework>$(UAPvNextTFM)</TargetFramework>
      </FrameworkLayout>
      <FrameworkLayout Include="$(PackagesDir)$(NETStandardPackageId)\$(NETStandardPackageVersion)\build\netstandard2.0\ref">
        <TargetFramework>netstandard2.0</TargetFramework>
      </FrameworkLayout>
      <FrameworkLayout Include="$(PackagesDir)$(NETStandardPackageId)\$(NETStandardPackageVersion)\build\net461\ref">
        <TargetFramework>net461</TargetFramework>
      </FrameworkLayout>
    </ItemGroup>

    <UpdatePackageIndex PackageIndexFile="$(PackageIndexFile)"
                        Packages="@(AllPackages)"
                        InboxFrameworkLayoutFolders="@(FrameworkLayout)" />
  </Target>

  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>