+++ /dev/null
-<Project DefaultTargets="Build">
- <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
- <PropertyGroup>
- <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="$(NuGetPackageRoot)$(NETStandardLibraryPackage)\$(NETStandardLibraryVersion)\build\netstandard2.0\ref">
- <TargetFramework>netstandard2.0</TargetFramework>
- </FrameworkLayout>
- <FrameworkLayout Include="$(NuGetPackageRoot)$(NETStandardLibraryPackage)\$(NETStandardLibraryVersion)\build\net461\ref">
- <TargetFramework>net461</TargetFramework>
- </FrameworkLayout>
- </ItemGroup>
-
- <UpdatePackageIndex PackageIndexFile="$(PackageIndexFile)"
- Packages="@(AllPackages)"
- InboxFrameworkLayoutFolders="@(FrameworkLayout)" />
- </Target>
- <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
-</Project>
\ No newline at end of file
<Project>
- <Import Project="..\Microsoft.Private.PackageBaseline\Microsoft.Private.PackageBaseline.props" />
-
<PropertyGroup>
<!-- Set PackageIndexFile to point to our local repo's index. This tells the packaging targets
which index should be used for updates -->
- <PackageIndexFile>$(MSBuildThisFileDirectory)..\Microsoft.Private.PackageBaseline\packageIndex.json</PackageIndexFile>
+ <PackageIndexFile>$(MSBuildThisFileDirectory)packageIndex.json</PackageIndexFile>
</PropertyGroup>
+ <ItemGroup>
+ <PackageIndex Include="$(PackageIndexFile)" />
+ </ItemGroup>
+
<!--
Below targets should moved to packaging.targets in BuildTools but keeping in corefx for convenience right now
-->