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">
|
|
|
|
|
|
|
|
<Target Name="SetupGenerateNugetPackagesInputsOutputs"
|
|
|
|
DependsOnTargets="Init">
|
|
|
|
<PropertyGroup>
|
|
|
|
<NupkgVersionSuffix>$(CommitCount)</NupkgVersionSuffix>
|
|
|
|
<ProjectsSrcDirectory>$(RepoRoot)/src</ProjectsSrcDirectory>
|
|
|
|
<PackagingBuildBasePath>$(Stage2CompilationDirectory)/forPackaging</PackagingBuildBasePath>
|
|
|
|
<NupkgOutputDirectory>$(PackagesDirectory)</NupkgOutputDirectory>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<ItemGroup>
|
2016-06-30 23:13:55 +00:00
|
|
|
<MicrosoftDotNetCliUtilsInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetCompilerCommonInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Compiler.Common/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Compiler.Common/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Compiler.Common/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.Compiler.Common/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetFilesInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Files/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Files/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.Files/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.Files/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetInternalAbstractionsInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.InternalAbstractions/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.InternalAbstractions/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.InternalAbstractions/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.InternalAbstractions/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetProjectModelInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetProjectModelLoaderInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Loader/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Loader/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Loader/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Loader/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftDotNetProjectModelWorkspacesInputs Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Workspaces/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Workspaces/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Workspaces/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.DotNet.ProjectModel.Workspaces/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftExtensionsDependencyModelInputs Include="$(ProjectsSrcDirectory)/Microsoft.Extensions.DependencyModel/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.Extensions.DependencyModel/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.Extensions.DependencyModel/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.Extensions.DependencyModel/**/obj/**/*.cs" />
|
|
|
|
<MicrosoftExtensionsTestingAbstractionsInputs Include="$(ProjectsSrcDirectory)/Microsoft.Extensions.Testing.Abstractions/**/*.cs;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.Extensions.Testing.Abstractions/**/project.json;
|
|
|
|
$(ProjectsSrcDirectory)/Microsoft.Extensions.Testing.Abstractions/**/project.lock.json"
|
|
|
|
Exclude="$(ProjectsSrcDirectory)/Microsoft.Extensions.Testing.Abstractions/**/obj/**/*.cs" />
|
|
|
|
|
|
|
|
<MicrosoftDotNetCliUtilsOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.Cli.Utils/**/netstandard*/Microsoft.DotNet.Cli.Utils.dll" />
|
|
|
|
<MicrosoftDotNetCompilerCommonOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.Compiler.Common/**/netstandard*/Microsoft.DotNet.Compiler.Common.dll" />
|
|
|
|
<MicrosoftDotNetFilesOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.Files/**/netstandard*/Microsoft.DotNet.Files.dll" />
|
|
|
|
<MicrosoftDotNetInternalAbstractionsOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.InternalAbstractions/**/netstandard*/Microsoft.DotNet.InternalAbstractions.dll" />
|
|
|
|
<MicrosoftDotNetProjectModelOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.ProjectModel/**/netstandard*/Microsoft.DotNet.ProjectModel.dll" />
|
|
|
|
<MicrosoftDotNetProjectModelLoaderOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.ProjectModel.Loader/**/netstandard*/Microsoft.DotNet.ProjectModel.Loader.dll" />
|
|
|
|
<MicrosoftDotNetProjectModelWorkspacesOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.DotNet.ProjectModel.Workspaces/**/netstandard*/Microsoft.DotNet.ProjectModel.Workspaces.dll" />
|
|
|
|
<MicrosoftExtensionsDependencyModelOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.Extensions.DependencyModel/**/netstandard*/Microsoft.Extensions.DependencyModel.dll" />
|
|
|
|
<MicrosoftExtensionsTestingAbstractionsOutputs Include="$(PackagingBuildBasePath)/src/Microsoft.Extensions.Testing.Abstractions/**/netstandard*/Microsoft.Extensions.Testing.Abstractions.dll" />
|
|
|
|
|
|
|
|
|
|
|
|
<ProjectsToPack Include="$(ProjectsSrcDirectory)/Microsoft.DotNet.Cli.Utils">
|
|
|
|
<Inputs>@(MicrosoftDotNetCliUtilsInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetCliUtilsOutputs)</Outputs>
|
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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetCompilerCommonInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetCompilerCommonOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetFilesInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetFilesOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetInternalAbstractionsInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetInternalAbstractionsOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetProjectModelInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetProjectModelOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetProjectModelLoaderInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetProjectModelLoaderOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftDotNetProjectModelWorkspacesInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftDotNetProjectModelWorkspacesOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftExtensionsDependencyModelInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftExtensionsDependencyModelOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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">
|
2016-06-30 23:13:55 +00:00
|
|
|
<Inputs>@(MicrosoftExtensionsTestingAbstractionsInputs)</Inputs>
|
|
|
|
<Outputs>@(MicrosoftExtensionsTestingAbstractionsOutputs)</Outputs>
|
2016-06-28 01:26:57 +00:00
|
|
|
<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-06-30 23:13:55 +00:00
|
|
|
<ProjectPackTargetInputs Include="%(ProjectsToPack.Outputs)" />
|
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)')">
|
|
|
|
|
|
|
|
<Exec Command="dotnet pack %(ProjectsToPack.Identity)
|
|
|
|
--no-build
|
|
|
|
--build-base-path $(PackagingBuildBasePath)
|
|
|
|
--output $(NupkgOutputDirectory)
|
|
|
|
--configuration $(Configuration)
|
|
|
|
--version-suffix $(NupkgVersionSuffix)" />
|
|
|
|
</Target>
|
2016-06-29 21:10:55 +00:00
|
|
|
|
|
|
|
<Target Name="BuildProjectsForNuGetPackages"
|
2016-06-29 21:01:16 +00:00
|
|
|
DependsOnTargets="Init;
|
|
|
|
SetupGenerateNugetPackagesInputsOutputs"
|
2016-06-30 23:13:55 +00:00
|
|
|
Condition=" '$(OS)' == 'Windows_NT' "
|
|
|
|
Inputs="%(ProjectsToPack.Inputs)"
|
|
|
|
Outputs="%(ProjectsToPack.Outputs)">
|
2016-06-29 21:10:55 +00:00
|
|
|
<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>
|