ca34332205
(cherry picked from commit c6e4c8f477
)
41 lines
1.6 KiB
XML
41 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" DefaultTargets="Layout" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<PackagingBuildBasePath>$(CompilationDirectory)/forPackaging</PackagingBuildBasePath>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="SetupProjectsToPack"
|
|
DependsOnTargets="Init">
|
|
<ItemGroup>
|
|
<ProjectsToPack Include="$(SrcDirectory)/Microsoft.DotNet.Cli.Utils" >
|
|
<ProjectName>Microsoft.DotNet.Cli.Utils</ProjectName>
|
|
<Version>$(SdkNugetVersion)</Version>
|
|
</ProjectsToPack>
|
|
<ProjectsToPack Include="$(SrcDirectory)/Microsoft.DotNet.MSBuildSdkResolver" >
|
|
<ProjectName>Microsoft.DotNet.MSBuildSdkResolver</ProjectName>
|
|
<Version>$(SdkNugetVersion)</Version>
|
|
</ProjectsToPack>
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<Target Name="GenerateNugetPackages"
|
|
DependsOnTargets="Init; SetupProjectsToPack">
|
|
|
|
<DotNetPack NoBuild="True"
|
|
Output="$(PackagesDirectory)"
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj"
|
|
ToolPath="$(PreviousStageDirectory)"
|
|
VersionSuffix="$(VersionSuffix)"
|
|
Configuration="$(Configuration)" />
|
|
</Target>
|
|
|
|
<Target Name="BuildProjectsForNuGetPackages"
|
|
DependsOnTargets="Init; SetupProjectsToPack">
|
|
|
|
<MakeDir Directories="$(PackagingBuildBasePath)" />
|
|
|
|
<DotNetBuild ToolPath="$(PreviousStageDirectory)"
|
|
Configuration="$(Configuration)"
|
|
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj" />
|
|
</Target>
|
|
</Project>
|