6bdd276d05
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
40 lines
1.6 KiB
XML
40 lines
1.6 KiB
XML
<?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.0.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" />
|
|
</ItemGroup>
|
|
|
|
<UpdatePackageIndex PackageIndexFile="$(PackageIndexFile)"
|
|
Packages="@(AllPackages)" />
|
|
</Target>
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
|
|
</Project> |