2016-06-28 01:26:57 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" DefaultTargets="Layout" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2016-07-26 04:29:59 +00:00
|
|
|
|
2016-07-15 22:55:34 +00:00
|
|
|
<Target Name="SetupProjectsToPack"
|
2016-06-28 01:26:57 +00:00
|
|
|
DependsOnTargets="Init">
|
|
|
|
<PropertyGroup>
|
|
|
|
<NupkgVersionSuffix>$(CommitCount)</NupkgVersionSuffix>
|
|
|
|
<ProjectsSrcDirectory>$(RepoRoot)/src</ProjectsSrcDirectory>
|
|
|
|
<PackagingBuildBasePath>$(Stage2CompilationDirectory)/forPackaging</PackagingBuildBasePath>
|
|
|
|
<NupkgOutputDirectory>$(PackagesDirectory)</NupkgOutputDirectory>
|
|
|
|
</PropertyGroup>
|
2016-07-26 04:29:59 +00:00
|
|
|
|
2016-06-28 01:26:57 +00:00
|
|
|
<ItemGroup>
|
2016-07-01 00:34:11 +00:00
|
|
|
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils" >
|
2016-06-28 01:26:57 +00:00
|
|
|
<ProjectName>Microsoft.DotNet.Cli.Utils</ProjectName>
|
2016-06-29 23:21:46 +00:00
|
|
|
<Version>$(SdkNugetVersion)</Version>
|
2016-06-28 01:26:57 +00:00
|
|
|
</ProjectsToPack>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="GenerateNugetPackages"
|
2016-11-04 05:11:58 +00:00
|
|
|
DependsOnTargets="Init; SetupProjectsToPack"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' ">
|
2016-07-13 18:19:38 +00:00
|
|
|
|
2016-11-03 06:01:57 +00:00
|
|
|
<DotNetPack NoBuild="True"
|
|
|
|
Output="$(NupkgOutputDirectory)"
|
|
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj"
|
2017-01-05 00:17:25 +00:00
|
|
|
ToolPath="$(Stage2Directory)"
|
2016-12-05 22:47:16 +00:00
|
|
|
VersionSuffix="preview5-$(NupkgVersionSuffix)"
|
2016-11-03 06:01:57 +00:00
|
|
|
Configuration="$(Configuration)" />
|
2016-06-28 01:26:57 +00:00
|
|
|
</Target>
|
2016-06-29 21:10:55 +00:00
|
|
|
|
|
|
|
<Target Name="BuildProjectsForNuGetPackages"
|
2016-11-03 06:01:57 +00:00
|
|
|
DependsOnTargets="Init; SetupProjectsToPack"
|
|
|
|
Condition=" '$(OS)' == 'Windows_NT' ">
|
|
|
|
|
|
|
|
<MakeDir Directories="$(PackagingBuildBasePath)" />
|
|
|
|
|
2017-01-05 00:17:25 +00:00
|
|
|
<DotNetBuild ToolPath="$(Stage2Directory)"
|
2016-11-03 06:01:57 +00:00
|
|
|
Configuration="$(Configuration)"
|
|
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj" />
|
2016-06-29 21:10:55 +00:00
|
|
|
</Target>
|
2016-06-28 01:26:57 +00:00
|
|
|
</Project>
|