43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" DefaultTargets="Layout" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<Target Name="SetupProjectsToPack"
|
|
DependsOnTargets="Init">
|
|
<PropertyGroup>
|
|
<NupkgVersionSuffix>$(CommitCount)</NupkgVersionSuffix>
|
|
<ProjectsSrcDirectory>$(RepoRoot)/src</ProjectsSrcDirectory>
|
|
<PackagingBuildBasePath>$(Stage2CompilationDirectory)/forPackaging</PackagingBuildBasePath>
|
|
<NupkgOutputDirectory>$(PackagesDirectory)</NupkgOutputDirectory>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils" >
|
|
<ProjectName>Microsoft.DotNet.Cli.Utils</ProjectName>
|
|
<Version>$(SdkNugetVersion)</Version>
|
|
</ProjectsToPack>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="GenerateNugetPackages"
|
|
DependsOnTargets="Init; SetupProjectsToPack"
|
|
Condition=" '$(OS)' == 'Windows_NT' ">
|
|
|
|
<DotNetPack NoBuild="True"
|
|
Output="$(NupkgOutputDirectory)"
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj"
|
|
ToolPath="$(Stage0Directory)"
|
|
VersionSuffix="rc3-$(NupkgVersionSuffix)"
|
|
Configuration="$(Configuration)" />
|
|
</Target>
|
|
|
|
<Target Name="BuildProjectsForNuGetPackages"
|
|
DependsOnTargets="Init; SetupProjectsToPack"
|
|
Condition=" '$(OS)' == 'Windows_NT' ">
|
|
|
|
<MakeDir Directories="$(PackagingBuildBasePath)" />
|
|
|
|
<DotNetBuild ToolPath="$(Stage0Directory)"
|
|
Configuration="$(Configuration)"
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj" />
|
|
</Target>
|
|
</Project>
|