[master] Update dependencies from dotnet/arcade (#9663)
[master] Update dependencies from dotnet/arcade - Update path to Arcade tasks
This commit is contained in:
parent
87fdf6e621
commit
5e82b73946
6 changed files with 45 additions and 19 deletions
|
@ -148,13 +148,13 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21105.5">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21105.12">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>fc83e59329203724d4a63c4f6c843be62983a35e</Sha>
|
<Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.21105.5">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="6.0.0-beta.21105.12">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>fc83e59329203724d4a63c4f6c843be62983a35e</Sha>
|
<Sha>938b3e8b4edcd96ca0f0cbbae63c87b3f51f7afe</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Private.SourceBuild.ReferencePackages" Version="1.0.0-beta.20217.1">
|
<Dependency Name="Private.SourceBuild.ReferencePackages" Version="1.0.0-beta.20217.1">
|
||||||
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>6.0.0-beta.21105.5</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>6.0.0-beta.21105.12</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -508,7 +508,7 @@ function InitializeBuildTool() {
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
$dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName 'dotnet')
|
$dotnetPath = Join-Path $dotnetRoot (GetExecutableFileName 'dotnet')
|
||||||
$buildTool = @{ Path = $dotnetPath; Command = 'msbuild'; Tool = 'dotnet'; Framework = 'netcoreapp2.1' }
|
$buildTool = @{ Path = $dotnetPath; Command = 'msbuild'; Tool = 'dotnet'; Framework = 'netcoreapp3.1' }
|
||||||
} elseif ($msbuildEngine -eq "vs") {
|
} elseif ($msbuildEngine -eq "vs") {
|
||||||
try {
|
try {
|
||||||
$msbuildPath = InitializeVisualStudioMSBuild -install:$restore
|
$msbuildPath = InitializeVisualStudioMSBuild -install:$restore
|
||||||
|
@ -644,13 +644,26 @@ function MSBuild() {
|
||||||
}
|
}
|
||||||
|
|
||||||
$toolsetBuildProject = InitializeToolset
|
$toolsetBuildProject = InitializeToolset
|
||||||
$path = Split-Path -parent $toolsetBuildProject
|
$basePath = Split-Path -parent $toolsetBuildProject
|
||||||
$path = Join-Path $path (Join-Path $buildTool.Framework 'Microsoft.DotNet.ArcadeLogging.dll')
|
$possiblePaths = @(
|
||||||
if (-not (Test-Path $path)) {
|
# new scripts need to work with old packages, so we need to look for the old names/versions
|
||||||
$path = Split-Path -parent $toolsetBuildProject
|
(Join-Path $basePath (Join-Path $buildTool.Framework 'Microsoft.DotNet.ArcadeLogging.dll')),
|
||||||
$path = Join-Path $path (Join-Path $buildTool.Framework 'Microsoft.DotNet.Arcade.Sdk.dll')
|
(Join-Path $basePath (Join-Path $buildTool.Framework 'Microsoft.DotNet.Arcade.Sdk.dll')),
|
||||||
|
(Join-Path $basePath (Join-Path netcoreapp2.1 'Microsoft.DotNet.ArcadeLogging.dll')),
|
||||||
|
(Join-Path $basePath (Join-Path netcoreapp2.1 'Microsoft.DotNet.Arcade.Sdk.dll'))
|
||||||
|
)
|
||||||
|
$selectedPath = $null
|
||||||
|
foreach ($path in $possiblePaths) {
|
||||||
|
if (Test-Path $path -PathType Leaf) {
|
||||||
|
$selectedPath = $path
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$args += "/logger:$path"
|
if (-not $selectedPath) {
|
||||||
|
Write-PipelineTelemetryError -Category 'Build' -Message 'Unable to find arcade sdk logger assembly.'
|
||||||
|
ExitWithExitCode 1
|
||||||
|
}
|
||||||
|
$args += "/logger:$selectedPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
MSBuild-Core @args
|
MSBuild-Core @args
|
||||||
|
|
|
@ -307,7 +307,7 @@ function InitializeBuildTool {
|
||||||
# return values
|
# return values
|
||||||
_InitializeBuildTool="$_InitializeDotNetCli/dotnet"
|
_InitializeBuildTool="$_InitializeDotNetCli/dotnet"
|
||||||
_InitializeBuildToolCommand="msbuild"
|
_InitializeBuildToolCommand="msbuild"
|
||||||
_InitializeBuildToolFramework="netcoreapp2.1"
|
_InitializeBuildToolFramework="netcoreapp3.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Set RestoreNoCache as a workaround for https://github.com/NuGet/Home/issues/3116
|
# Set RestoreNoCache as a workaround for https://github.com/NuGet/Home/issues/3116
|
||||||
|
@ -414,11 +414,24 @@ function MSBuild {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local toolset_dir="${_InitializeToolset%/*}"
|
local toolset_dir="${_InitializeToolset%/*}"
|
||||||
local logger_path="$toolset_dir/$_InitializeBuildToolFramework/Microsoft.DotNet.ArcadeLogging.dll"
|
# new scripts need to work with old packages, so we need to look for the old names/versions
|
||||||
if [[ ! -f $logger_path ]]; then
|
local selectedPath=
|
||||||
logger_path="$toolset_dir/$_InitializeBuildToolFramework/Microsoft.DotNet.Arcade.Sdk.dll"
|
local possiblePaths=()
|
||||||
|
possiblePaths+=( "$toolset_dir/$_InitializeBuildToolFramework/Microsoft.DotNet.ArcadeLogging.dll" )
|
||||||
|
possiblePaths+=( "$toolset_dir/$_InitializeBuildToolFramework/Microsoft.DotNet.Arcade.Sdk.dll" )
|
||||||
|
possiblePaths+=( "$toolset_dir/netcoreapp2.1/Microsoft.DotNet.ArcadeLogging.dll" )
|
||||||
|
possiblePaths+=( "$toolset_dir/netcoreapp2.1/Microsoft.DotNet.Arcade.Sdk.dll" )
|
||||||
|
for path in "${possiblePaths[@]}"; do
|
||||||
|
if [[ -f $path ]]; then
|
||||||
|
selectedPath=$path
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [[ -z "$selectedPath" ]]; then
|
||||||
|
Write-PipelineTelemetryError -category 'Build' "Unable to find arcade sdk logger assembly."
|
||||||
|
ExitWithExitCode 1
|
||||||
fi
|
fi
|
||||||
args=( "${args[@]}" "-logger:$logger_path" )
|
args+=( "-logger:$selectedPath" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MSBuild-Core ${args[@]}
|
MSBuild-Core ${args[@]}
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21105.5"
|
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21105.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\netcoreapp2.1\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly>
|
<MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\netcoreapp3.1\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly>
|
||||||
<MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\net472\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly>
|
<MicrosoftDotNetBuildTasksInstallersTaskAssembly Condition="'$(MSBuildRuntimeType)' != 'Core'">$(NuGetPackageRoot)microsoft.dotnet.build.tasks.installers\$(MicrosoftDotNetBuildTasksInstallersPackageVersion)\tools\net472\Microsoft.DotNet.Build.Tasks.Installers.dll</MicrosoftDotNetBuildTasksInstallersTaskAssembly>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue