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

87 lines
4.2 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>
<NupkgVersionSuffix>$(CommitCount)</NupkgVersionSuffix>
<ProjectsSrcDirectory>$(RepoRoot)/src</ProjectsSrcDirectory>
<PackagingBuildBasePath>$(Stage2CompilationDirectory)/forPackaging</PackagingBuildBasePath>
<NupkgOutputDirectory>$(PackagesDirectory)</NupkgOutputDirectory>
</PropertyGroup>
<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>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Compiler.Common">
<ProjectName>Microsoft.DotNet.Compiler.Common</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(SdkNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Files">
<ProjectName>Microsoft.DotNet.Files</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(SdkNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.InternalAbstractions">
<ProjectName>Microsoft.DotNet.InternalAbstractions</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(DependencyModelAndInternalAbstractionsNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel">
<ProjectName>Microsoft.DotNet.ProjectModel</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(ProjectModelNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Loader">
<ProjectName>Microsoft.DotNet.ProjectModel.Loader</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(SdkNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Workspaces">
<ProjectName>Microsoft.DotNet.ProjectModel.Workspaces</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(SdkNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.Extensions.DependencyModel">
<ProjectName>Microsoft.Extensions.DependencyModel</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(DependencyModelAndInternalAbstractionsNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.Extensions.Testing.Abstractions">
<ProjectName>Microsoft.Extensions.Testing.Abstractions</ProjectName>
2016-06-29 23:21:46 +00:00
<Version>$(SdkNugetVersion)</Version>
2016-06-28 01:26:57 +00:00
</ProjectsToPack>
2016-07-15 22:55:34 +00:00
</ItemGroup>
</Target>
2016-06-28 01:26:57 +00:00
2016-07-15 22:55:34 +00:00
<Target Name="SetupGenerateNugetPackagesInputsOutputs"
DependsOnTargets="SetupProjectsToPack">
<ItemGroup>
<ProjectPackTargetInputs Include="$(PackagingBuildBasePath)/src/%(ProjectsToPack.ProjectName)/**/netstandard*/%(ProjectsToPack.ProjectName).dll" />
2016-06-28 01:26:57 +00:00
<ProjectPackTargetOutputs Include="$(NupkgOutputDirectory)/%(ProjectsToPack.ProjectName).%(ProjectsToPack.Version).nupkg" />
</ItemGroup>
</Target>
<Target Name="GenerateNugetPackages"
DependsOnTargets="SetupGenerateNugetPackagesInputsOutputs"
Inputs="@(ProjectPackTargetInputs -> '%(Identity)')"
Outputs="@(ProjectPackTargetOutputs -> '%(Identity)')">
2016-07-13 18:19:38 +00:00
<DotNetPack BuildBasePath="$(PackagingBuildBasePath)"
NoBuild="True"
Output="$(NupkgOutputDirectory)"
ProjectPath="%(ProjectsToPack.Identity)"
ToolPath="$(Stage2Directory)"
2016-07-13 18:19:38 +00:00
VersionSuffix="$(NupkgVersionSuffix)"
Configuration="$(Configuration)" />
2016-06-28 01:26:57 +00:00
</Target>
<Target Name="BuildProjectsForNuGetPackages"
DependsOnTargets="Init;
2016-07-15 22:55:34 +00:00
SetupProjectsToPack"
Condition=" '$(OS)' == 'Windows_NT' ">
<MakeDir Directories="$(PackagingBuildBasePath)" />
<Exec Command="$(DotnetStage2) build
--build-base-path $(PackagingBuildBasePath)
--configuration $(Configuration)
%(ProjectsToPack.Identity)" />
</Target>
2016-06-28 01:26:57 +00:00
</Project>