Dynamically acquire branch info, remove branchinfo.props
This commit is contained in:
parent
7aac04bdec
commit
ace6e859e7
3 changed files with 3 additions and 7 deletions
|
@ -301,4 +301,5 @@ stages:
|
|||
/p:DotNetPublishSdkAssetsBlobFeedKey=$(dotnetcli-storage-key)
|
||||
/p:DotnetPublishChecksumsBlobFeedUrl=https://dotnetclichecksums.blob.core.windows.net/dotnet/index.json
|
||||
/p:DotNetPublishChecksumsBlobFeedKey=$(dotnetclichecksums-storage-key)
|
||||
/p:SourceBranch=$(BUILD.SOURCEBRANCH)
|
||||
displayName: Copy to latest
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
<TargetFramework>$(CoreSdkTargetFramework)</TargetFramework>
|
||||
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
|
||||
<CopyBuildOutputToPublishDirectory>false</CopyBuildOutputToPublishDirectory>
|
||||
<Channel>$(SourceBranch.Replace('refs/heads/', '').Replace('internal/', ''))</Channel>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="targets\BranchInfo.props" />
|
||||
<Import Project="..\redist\targets\BuildCoreSdkTasks.targets" />
|
||||
<Import Project="..\redist\targets\GetRuntimeInformation.targets" />
|
||||
<Import Project="..\redist\targets\Versions.targets" />
|
||||
|
||||
<Import Project="targets\FinishBuild.targets" />
|
||||
</Project>
|
||||
</Project>
|
|
@ -1,5 +0,0 @@
|
|||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Channel>master</Channel>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in a new issue