dotnet-installer/build/package/Microsoft.DotNet.Cli.Nupkg.targets

43 lines
1.6 KiB
Text
Raw Normal View History

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-15 22:55:34 +00:00
<Target Name="SetupProjectsToPack"
2016-06-28 01:26:57 +00:00
DependsOnTargets="Init">
<PropertyGroup>
<ProjectsSrcDirectory>$(RepoRoot)/src</ProjectsSrcDirectory>
<PackagingBuildBasePath>$(Stage2CompilationDirectory)/forPackaging</PackagingBuildBasePath>
<NupkgOutputDirectory>$(PackagesDirectory)</NupkgOutputDirectory>
</PropertyGroup>
2016-06-28 01:26:57 +00:00
<ItemGroup>
<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"
DependsOnTargets="Init; SetupProjectsToPack"
Condition=" '$(OS)' == 'Windows_NT' ">
2016-07-13 18:19:38 +00:00
<DotNetPack NoBuild="True"
Output="$(NupkgOutputDirectory)"
ProjectPath="%(ProjectsToPack.Identity)/%(ProjectsToPack.ProjectName).csproj"
ToolPath="$(Stage0Directory)"
VersionSuffix="$(VersionSuffix)"
Configuration="$(Configuration)" />
2016-06-28 01:26:57 +00:00
</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>
2016-06-28 01:26:57 +00:00
</Project>