2017-02-16 22:15:05 +00:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
2016-12-02 04:10:42 +00:00
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
2017-02-23 06:44:52 +00:00
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.tasks" />
|
2016-12-02 04:10:42 +00:00
|
|
|
|
|
2016-10-29 08:04:20 +00:00
|
|
|
|
<PropertyGroup>
|
2017-01-10 23:31:43 +00:00
|
|
|
|
<VersionPrefix>$(CliVersionPrefix)</VersionPrefix>
|
2017-01-26 03:19:44 +00:00
|
|
|
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
|
|
|
<RuntimeFrameworkVersion>$(CLI_SharedFrameworkVersion)</RuntimeFrameworkVersion>
|
2016-10-29 08:04:20 +00:00
|
|
|
|
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
2017-02-23 06:44:52 +00:00
|
|
|
|
<CopyBuildOutputToPublishDirectory>false</CopyBuildOutputToPublishDirectory>
|
2017-01-26 03:19:44 +00:00
|
|
|
|
<PackageTargetFallback>$(PackageTargetFallback);dotnet5.4</PackageTargetFallback>
|
2017-02-16 22:15:05 +00:00
|
|
|
|
<PublishDir>$(Stage2SdkDirectory)</PublishDir>
|
|
|
|
|
<VersionSuffix>$(CommitCount)</VersionSuffix>
|
2016-10-29 08:04:20 +00:00
|
|
|
|
</PropertyGroup>
|
2017-02-16 22:15:05 +00:00
|
|
|
|
|
2016-10-29 08:04:20 +00:00
|
|
|
|
<ItemGroup>
|
2017-02-16 22:15:05 +00:00
|
|
|
|
<PackageReference Include="Microsoft.NETCore.App" Version="$(CLI_SharedFrameworkVersion)" />
|
|
|
|
|
<PackageReference Include="Microsoft.Build.Runtime" Version="$(CLI_MSBuild_Version)" />
|
|
|
|
|
<PackageReference Include="NuGet.Build.Tasks" Version="$(CLI_NuGet_Version)" />
|
|
|
|
|
<PackageReference Include="Microsoft.TestPlatform.CLI" Version="$(CLI_TestPlatform_Version)" />
|
|
|
|
|
<PackageReference Include="Microsoft.TestPlatform.Build" Version="$(CLI_TestPlatform_Version)" />
|
2016-10-29 08:04:20 +00:00
|
|
|
|
</ItemGroup>
|
2017-02-23 06:44:52 +00:00
|
|
|
|
|
2017-01-26 03:19:44 +00:00
|
|
|
|
<ItemGroup>
|
2016-10-29 08:04:20 +00:00
|
|
|
|
<ProjectReference Include="..\dotnet\dotnet.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Archive\Microsoft.DotNet.Archive.csproj" />
|
2016-12-07 21:49:15 +00:00
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Cli.Sln.Internal\Microsoft.DotNet.Cli.Sln.Internal.csproj" />
|
2016-10-29 08:04:20 +00:00
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Cli.Utils\Microsoft.DotNet.Cli.Utils.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.Configurer\Microsoft.DotNet.Configurer.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.InternalAbstractions\Microsoft.DotNet.InternalAbstractions.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.ProjectJsonMigration\Microsoft.DotNet.ProjectJsonMigration.csproj" />
|
|
|
|
|
<ProjectReference Include="..\Microsoft.DotNet.TestFramework\Microsoft.DotNet.TestFramework.csproj" />
|
|
|
|
|
<ProjectReference Include="..\tool_msbuild\tool_msbuild.csproj" />
|
|
|
|
|
<ProjectReference Include="..\tool_nuget\tool_nuget.csproj" />
|
|
|
|
|
</ItemGroup>
|
2017-02-23 06:44:52 +00:00
|
|
|
|
|
2017-02-23 09:12:32 +00:00
|
|
|
|
<Target Name="PublishSharedFramework"
|
|
|
|
|
BeforeTargets="Publish">
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<SharedFramework Remove="*" />
|
|
|
|
|
<SharedFramework Include="$(SharedFrameworkPublishDirectory)/**/*" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<Copy SourceFiles="@(SharedFramework)"
|
|
|
|
|
DestinationFiles="@(SharedFramework->'$(StageDirectory)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
2017-02-23 10:33:00 +00:00
|
|
|
|
<Target Name="PublishVersionFile"
|
|
|
|
|
BeforeTargets="Publish">
|
|
|
|
|
|
|
|
|
|
<WriteLinesToFile File="$(SdkOutputDirectory)/.version"
|
|
|
|
|
Lines="$(CommitHash);$(SdkVersion);$(Rid)"
|
|
|
|
|
Overwrite="true" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
2017-02-23 06:44:52 +00:00
|
|
|
|
<Target Name="GenerateCliRuntimeConfigurationFiles"
|
|
|
|
|
AfterTargets="Publish">
|
|
|
|
|
<RemoveAssetFromDepsPackages DepsFile="$(PublishDir)/$(TargetName).deps.json"
|
|
|
|
|
SectionName="runtime"
|
|
|
|
|
AssetPath="%(BundledToolProjects.Identity).dll" />
|
|
|
|
|
|
|
|
|
|
<Copy SourceFiles="$(PublishDir)/$(TargetName).deps.json"
|
|
|
|
|
DestinationFiles="$(SdkOutputDirectory)/%(BundledTools.Identity).deps.json" />
|
|
|
|
|
|
|
|
|
|
<Copy SourceFiles="$(PublishDir)/$(TargetName).runtimeconfig.json"
|
|
|
|
|
DestinationFiles="$(SdkOutputDirectory)/%(BundledTools.Identity).runtimeconfig.json" />
|
|
|
|
|
|
|
|
|
|
<Delete Files="$(PublishDir)/$(TargetName).deps.json;
|
|
|
|
|
$(PublishDir)/$(TargetName).runtimeconfig.json;
|
|
|
|
|
$(PublishDir)/%(BundledToolProjects.Identity).dll" />
|
|
|
|
|
|
|
|
|
|
<ChangeEntryPointLibraryName
|
|
|
|
|
DepsFile="$(SdkOutputDirectory)/%(BundledTools.Identity).deps.json"
|
|
|
|
|
NewName="%(BundledTools.Identity).deps.json" />
|
|
|
|
|
</Target>
|
|
|
|
|
</Project>
|