Skip to content

[automated] Merge branch 'release/3.1' => 'master' #16580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
c82a95e
[release/3.1] Update dependencies from 3 repositories (#15218)
dotnet-maestro[bot] Oct 24, 2019
3e8f7fd
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 24, 2019
4296415
Update dependencies from https://github.com/aspnet/EntityFrameworkCor…
dotnet-maestro[bot] Oct 24, 2019
02e8bd9
Update dependencies from https://github.com/aspnet/EntityFrameworkCor…
dotnet-maestro[bot] Oct 24, 2019
5776542
[ApiAuth] Fix subscription callbacks when unsubscribe (#15194)
hermanho Oct 24, 2019
c93106b
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 24, 2019
6cf34a9
Update doc references in Auth action results (#15110)
Potapy4 Oct 24, 2019
7132548
Rebrand for 3.1.0-preview3
dougbu Oct 24, 2019
19cd424
Merge pull request #15362 from aspnet/darc-release/3.1-preview2-9e2fa…
wtgodbe Oct 24, 2019
45cb1a4
Update dependencies from https://github.com/aspnet/EntityFrameworkCor…
dotnet-maestro[bot] Oct 24, 2019
60cb700
[Templating][Fixes #15349] Update SPA templates to use generic host (…
javiercn Oct 24, 2019
4b30542
[Blazor] Reliability improvements for the E2E tests (#15320)
javiercn Oct 24, 2019
4481046
Merge pull request #15356 from aspnet/darc-release/3.1-63f8fcd8-5c39-…
pranavkm Oct 24, 2019
0dcfe1b
Merge pull request #15379 from aspnet/darc-release/3.1-preview2-2a08b…
wtgodbe Oct 24, 2019
00bb2db
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 24, 2019
2f1029e
Merge pull request #15382 from aspnet/darc-release/3.1-preview2-9d6ed…
wtgodbe Oct 24, 2019
e40b218
Fix race with CTS disposing (#11757)
BrennanConroy Oct 25, 2019
08299d5
Nuke helix arm runs on 3.1 (#15390)
HaoK Oct 25, 2019
bf846cb
[Blazor][Fixes #14959] NavLink match should be case-insensitive (#15401)
javiercn Oct 25, 2019
87f2038
Print a useful error message when render-mode isn't specified
pranavkm Oct 25, 2019
e2cc50d
Update ref asm
pranavkm Oct 25, 2019
5e51521
Update dependencies from https://github.com/aspnet/EntityFrameworkCor…
dotnet-maestro[bot] Oct 26, 2019
e8c2c7d
Update dependencies from AspNeCore-Tooling
wtgodbe Oct 26, 2019
7ef5dd3
Merge pull request #15424 from aspnet/darc-release/3.1-preview2-04af2…
wtgodbe Oct 26, 2019
c94b2dd
[Blazor][Fixes #15399]The Blazor descriptor can contain two consecuti…
javiercn Oct 28, 2019
1361b0e
Print a useful error message when render-mode isn't specified (#15410)
pranavkm Oct 28, 2019
3e71257
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 29, 2019
471e471
Merge pull request #16622 from aspnet/darc-release/3.1-preview2-9daa2…
wtgodbe Oct 29, 2019
8197e99
[Blazor] Move webassembly only functions to Boot.WebAssembly.ts (#13249)
javiercn Oct 29, 2019
1e9ede1
[Blazor] Remove unnecessary double serialization
javiercn Oct 29, 2019
f19a452
[Blazor][Fixes #16569] Updates _Host.cshtml to avoid rendering the Id…
javiercn Oct 29, 2019
a168e50
Allow EnableBuffering + Json.NET \ Xml input formatters to work bette…
pranavkm Oct 29, 2019
405f002
Use a "FakeRoot" to allow Globbing pattern to walk up the heirarchy (…
ryanbrandenburg Oct 29, 2019
ebd87a8
[Blazor][Fixes #15413] Notify client of errors during initialization …
javiercn Oct 30, 2019
8e3075d
Update outdated npm dependencies (#15318)
mkArtakMSFT Oct 30, 2019
0540ec2
Don't re-use requests (#15389)
ryanbrandenburg Oct 30, 2019
e79b144
Avoid incorrectly providing diagnostics for chained calls (#16639)
pranavkm Oct 30, 2019
fc05a91
Merge branch 'release/3.1' into merge/release/3.1-preview2-to-release…
wtgodbe Oct 30, 2019
2d4b110
Correctly handle AddMultipleAttributes terminated by OpenRegion. Fixe…
SteveSandersonMS Oct 29, 2019
cf97684
Enable SDL validation in rel/3.1
wtgodbe Oct 30, 2019
ffd4e4b
Add variable group
wtgodbe Oct 30, 2019
55c8dd2
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 30, 2019
58c9ece
Merge branch 'release/3.1' into merge/release/3.1-preview2-to-release…
wtgodbe Oct 30, 2019
9f90301
Fix variable group
wtgodbe Oct 30, 2019
da808ce
Update dependencies from https://github.com/aspnet/AspNetCore-Tooling…
dotnet-maestro[bot] Oct 30, 2019
c11fe23
Very candidacy before processing in PageLoaderMatcherPolicy (#16678)
pranavkm Oct 30, 2019
8669ce3
Update dependencies from https://github.com/aspnet/Blazor build 20191…
dotnet-maestro[bot] Oct 30, 2019
11a84e2
Merge pull request #16673 from aspnet/SDL
wtgodbe Oct 30, 2019
63c802b
[release/3.1] Update dependencies from 2 repositories (#16683)
dotnet-maestro[bot] Oct 31, 2019
1eb00e6
Merge branch 'release/3.1' into merge/release/3.1-preview2-to-release…
wtgodbe Oct 31, 2019
0faf339
Fix mouse events occurring on children of a disabled form field (#16671)
SteveSandersonMS Oct 31, 2019
3c14012
[release/3.1] Update dependencies from 3 repositories (#16685)
dotnet-maestro[bot] Oct 31, 2019
3cc5f76
Merge branch 'merge/release/3.1-preview2-to-release/3.1' of https://g…
BrennanConroy Oct 31, 2019
3e355d4
Update dependencies from https://github.com/aspnet/EntityFrameworkCor…
dotnet-maestro[bot] Oct 31, 2019
4c37e0f
fix tests
BrennanConroy Oct 31, 2019
5a7cd97
Merge branch 'release/3.1'
BrennanConroy Oct 31, 2019
993e45e
again
BrennanConroy Oct 31, 2019
71547db
how...
BrennanConroy Oct 31, 2019
8acff52
Merge pull request #16668 from dotnet-maestro-bot/merge/release/3.1-p…
BrennanConroy Oct 31, 2019
3ceca46
[Platform] Provide a better error message when the developer certific…
javiercn Oct 31, 2019
764e478
Merge branch 'merge/release/3.1-to-master' of https://github.com/dotn…
BrennanConroy Oct 31, 2019
b5cef38
update blazor
BrennanConroy Oct 31, 2019
cfea2e9
Fix TestServer from blocking on request stream (#15591)
JamesNK Oct 31, 2019
39e2988
[release/3.1] Update dependencies from 2 repositories (#16704)
dotnet-maestro[bot] Oct 31, 2019
e89f2f4
Mark flaky test as flaky (#16708)
BrennanConroy Oct 31, 2019
433a5a0
Merge branch 'merge/release/3.1-to-master' of https://github.com/dotn…
BrennanConroy Oct 31, 2019
fece470
[master] Update Arcade dependency (#16716)
BrennanConroy Nov 1, 2019
0e8fea6
Initial port of MsQuic transport (#15375)
jkotalik Nov 1, 2019
0a61879
Websocket handshake perf (#12386)
BrennanConroy Nov 1, 2019
35403fe
Merge branch 'merge/release/3.1-to-master' of https://github.com/dotn…
BrennanConroy Nov 1, 2019
38eebb5
ref
BrennanConroy Nov 1, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .azure/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ variables:
valule: test
- name: _PublishArgs
value: ''

# used for post-build phases, internal builds only
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
- group: DotNet-AspNet-SDLValidation-Params

stages:
- stage: build
displayName: Build
Expand Down Expand Up @@ -654,3 +657,17 @@ stages:
enableSymbolValidation: false
enableSigningValidation: false
publishInstallersAndChecksums: true
# This is to enable SDL runs part of Post-Build Validation Stage
SDLValidationParameters:
enable: true
continueOnError: false
params: ' -SourceToolsList @("policheck","credscan")
-TsaInstanceURL $(_TsaInstanceURL)
-TsaProjectName $(_TsaProjectName)
-TsaNotificationEmail $(_TsaNotificationEmail)
-TsaCodebaseAdmin $(_TsaCodebaseAdmin)
-TsaBugAreaPath $(_TsaBugAreaPath)
-TsaIterationPath $(_TsaIterationPath)
-TsaRepositoryName "AspNetCore"
-TsaCodebaseName "AspNetCore"
-TsaPublish $True'
1 change: 1 addition & 0 deletions eng/ProjectReferences.props
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Server.Kestrel.Core" ProjectPath="$(RepoRoot)src\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj" RefProjectPath="$(RepoRoot)src\Servers\Kestrel\Core\ref\Microsoft.AspNetCore.Server.Kestrel.Core.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Server.Kestrel" ProjectPath="$(RepoRoot)src\Servers\Kestrel\Kestrel\src\Microsoft.AspNetCore.Server.Kestrel.csproj" RefProjectPath="$(RepoRoot)src\Servers\Kestrel\Kestrel\ref\Microsoft.AspNetCore.Server.Kestrel.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" ProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.Libuv\src\Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.csproj" RefProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.Libuv\ref\Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic" ProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.MsQuic\src\Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic.csproj" RefProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.MsQuic\ref\Microsoft.AspNetCore.Server.Kestrel.Transport.MsQuic.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets" ProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.Sockets\src\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.csproj" RefProjectPath="$(RepoRoot)src\Servers\Kestrel\Transport.Sockets\ref\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Authentication.Certificate" ProjectPath="$(RepoRoot)src\Security\Authentication\Certificate\src\Microsoft.AspNetCore.Authentication.Certificate.csproj" RefProjectPath="$(RepoRoot)src\Security\Authentication\Certificate\ref\Microsoft.AspNetCore.Authentication.Certificate.csproj" />
<ProjectReferenceProvider Include="Microsoft.AspNetCore.Authentication.Cookies" ProjectPath="$(RepoRoot)src\Security\Authentication\Cookies\src\Microsoft.AspNetCore.Authentication.Cookies.csproj" RefProjectPath="$(RepoRoot)src\Security\Authentication\Cookies\ref\Microsoft.AspNetCore.Authentication.Cookies.csproj" />
Expand Down
24 changes: 12 additions & 12 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
-->
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.AspNetCore.Blazor.Mono" Version="5.0.0-alpha1.19528.2">
<Dependency Name="Microsoft.AspNetCore.Blazor.Mono" Version="5.0.0-alpha1.19531.2">
<Uri>https://github.com/aspnet/Blazor</Uri>
<Sha>109766852cdedfd07babca70c56b18a508228e1d</Sha>
<Sha>67c011629f56585c6a561dc4bdca70efc43579dd</Sha>
</Dependency>
<Dependency Name="Microsoft.AspNetCore.Razor.Language" Version="5.0.0-alpha1.19524.8">
<Uri>https://github.com/aspnet/AspNetCore-Tooling</Uri>
Expand Down Expand Up @@ -293,10 +293,6 @@
<Uri>https://github.com/aspnet/Extensions</Uri>
<Sha>7642beec82008e7d0e719220e1cb2c3f5277276c</Sha>
</Dependency>
<Dependency Name="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>4ac4c0367003fe3973a3648eb0715ddb0e3bbcea</Sha>
</Dependency>
<Dependency Name="Microsoft.CSharp" Version="5.0.0-alpha1.19520.7" CoherentParentDependency="Microsoft.NETCore.App.Runtime.win-x64">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>03453d9aae8e5d18e571699c5d2229b1ab5f4b9d</Sha>
Expand Down Expand Up @@ -401,6 +397,10 @@
<Uri>https://github.com/dotnet/core-setup</Uri>
<Sha>a3a9cb66e59909d03269f7c0024f10fe07f0a2d5</Sha>
</Dependency>
<Dependency Name="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" Pinned="true">
<Uri>https://github.com/dotnet/corefx</Uri>
<Sha>4ac4c0367003fe3973a3648eb0715ddb0e3bbcea</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<!-- Listed explicitly to workaround https://github.com/dotnet/cli/issues/10528 -->
Expand All @@ -412,17 +412,17 @@
<Uri>https://github.com/aspnet/Extensions</Uri>
<Sha>7642beec82008e7d0e719220e1cb2c3f5277276c</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19517.3">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.19531.8">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19517.3">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.19531.8">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19517.3">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.19531.8">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>a42a124635ce1a218309ecb31ec59d559cacb886</Sha>
<Sha>cd7480090dc1c2f2ec7b6090faac7b634ef0b11b</Sha>
</Dependency>
<Dependency Name="Microsoft.AspNetCore.Testing" Version="5.0.0-alpha1.19530.2" CoherentParentDependency="Microsoft.EntityFrameworkCore">
<Uri>https://github.com/aspnet/Extensions</Uri>
Expand Down
4 changes: 2 additions & 2 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
-->
<PropertyGroup Label="Automated">
<!-- Packages from dotnet/arcade -->
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19517.3</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>5.0.0-beta.19531.8</MicrosoftDotNetGenAPIPackageVersion>
<!-- Packages from dotnet/roslyn -->
<MicrosoftNetCompilersToolsetPackageVersion>3.4.0-beta1-19456-03</MicrosoftNetCompilersToolsetPackageVersion>
<!-- Packages from dotnet/core-setup -->
Expand Down Expand Up @@ -94,7 +94,7 @@
<!-- Only listed explicitly to workaround https://github.com/dotnet/cli/issues/10528 -->
<MicrosoftNETCorePlatformsPackageVersion>5.0.0-alpha1.19520.7</MicrosoftNETCorePlatformsPackageVersion>
<!-- Packages from aspnet/Blazor -->
<MicrosoftAspNetCoreBlazorMonoPackageVersion>5.0.0-alpha1.19528.2</MicrosoftAspNetCoreBlazorMonoPackageVersion>
<MicrosoftAspNetCoreBlazorMonoPackageVersion>5.0.0-alpha1.19531.2</MicrosoftAspNetCoreBlazorMonoPackageVersion>
<!-- Packages from aspnet/Extensions -->
<InternalAspNetCoreAnalyzersPackageVersion>5.0.0-alpha1.19530.2</InternalAspNetCoreAnalyzersPackageVersion>
<MicrosoftAspNetCoreAnalyzerTestingPackageVersion>5.0.0-alpha1.19530.2</MicrosoftAspNetCoreAnalyzerTestingPackageVersion>
Expand Down
6 changes: 4 additions & 2 deletions eng/common/PublishToSymbolServers.proj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<PropertyGroup>
<DotNetSymbolExpirationInDays Condition="'$(DotNetSymbolExpirationInDays)' == ''">3650</DotNetSymbolExpirationInDays>
<PublishToSymbolServer>true</PublishToSymbolServer>
<PublishToSymWeb Condition="'$(PublishToSymWeb)' == ''">true</PublishToSymWeb>
<PublishToMSDL Condition="'$(PublishToMSDL)' == ''">true</PublishToMSDL>
<PublishToSymbolServer Condition="'@(FilesToPublishToSymbolServer)' == '' and '@(PackagesToPublishToSymbolServer)' == ''">false</PublishToSymbolServer>
</PropertyGroup>

Expand All @@ -56,7 +58,7 @@
DryRun="false"
ConvertPortablePdbsToWindowsPdbs="false"
PdbConversionTreatAsWarning=""
Condition="$(PublishToSymbolServer)"/>
Condition="$(PublishToSymbolServer) and $(PublishToMSDL)"/>

<!--
Symbol Uploader: SymWeb
Expand All @@ -73,7 +75,7 @@
DryRun="false"
ConvertPortablePdbsToWindowsPdbs="false"
PdbConversionTreatAsWarning=""
Condition="$(PublishToSymbolServer)"/>
Condition="$(PublishToSymbolServer) and $(PublishToSymWeb)"/>
</Target>

<ItemGroup>
Expand Down
19 changes: 11 additions & 8 deletions eng/common/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Param(
[switch] $sign,
[switch] $pack,
[switch] $publish,
[switch] $clean,
[switch][Alias('bl')]$binaryLog,
[switch] $ci,
[switch] $prepareMachine,
Expand Down Expand Up @@ -48,6 +49,7 @@ function Print-Usage() {
Write-Host " -pack Package build outputs into NuGet packages and Willow components"
Write-Host " -sign Sign build outputs"
Write-Host " -publish Publish artifacts (e.g. symbols)"
Write-Host " -clean Clean the solution"
Write-Host ""

Write-Host "Advanced settings:"
Expand Down Expand Up @@ -112,6 +114,14 @@ function Build {
@properties
}

if ($clean) {
if(Test-Path $ArtifactsDir) {
Remove-Item -Recurse -Force $ArtifactsDir
Write-Host "Artifacts directory deleted."
}
exit 0
}

try {
if ($help -or (($null -ne $properties) -and ($properties.Contains("/help") -or $properties.Contains("/?")))) {
Print-Usage
Expand All @@ -123,14 +133,7 @@ try {
$nodeReuse = $false
}

# Import custom tools configuration, if present in the repo.
# Note: Import in global scope so that the script set top-level variables without qualification.
$configureToolsetScript = Join-Path $EngRoot "configure-toolset.ps1"
if (Test-Path $configureToolsetScript) {
. $configureToolsetScript
}

if (($restore) -and ($null -eq $env:DisableNativeToolsetInstalls)) {
if ($restore) {
InitializeNativeTools
}

Expand Down
24 changes: 12 additions & 12 deletions eng/common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ usage()
echo " --pack Package build outputs into NuGet packages and Willow components"
echo " --sign Sign build outputs"
echo " --publish Publish artifacts (e.g. symbols)"
echo " --clean Clean the solution"
echo ""

echo "Advanced settings:"
Expand Down Expand Up @@ -62,6 +63,7 @@ publish=false
sign=false
public=false
ci=false
clean=false

warn_as_error=true
node_reuse=true
Expand All @@ -82,6 +84,9 @@ while [[ $# > 0 ]]; do
usage
exit 0
;;
-clean)
clean=true
;;
-configuration|-c)
configuration=$2
shift
Expand Down Expand Up @@ -196,20 +201,15 @@ function Build {
ExitWithExitCode 0
}

# Import custom tools configuration, if present in the repo.
configure_toolset_script="$eng_root/configure-toolset.sh"
if [[ -a "$configure_toolset_script" ]]; then
. "$configure_toolset_script"
fi

# TODO: https://github.com/dotnet/arcade/issues/1468
# Temporary workaround to avoid breaking change.
# Remove once repos are updated.
if [[ -n "${useInstalledDotNetCli:-}" ]]; then
use_installed_dotnet_cli="$useInstalledDotNetCli"
if [[ "$clean" == true ]]; then
if [ -d "$artifacts_dir" ]; then
rm -rf $artifacts_dir
echo "Artifacts directory deleted."
fi
exit 0
fi

if [[ "$restore" == true && -z ${DisableNativeToolsetInstalls:-} ]]; then
if [[ "$restore" == true ]]; then
InitializeNativeTools
fi

Expand Down
11 changes: 8 additions & 3 deletions eng/common/darc-init.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
param (
$darcVersion = $null,
$versionEndpoint = "https://maestro-prod.westus2.cloudapp.azure.com/api/assets/darc-version?api-version=2019-01-16",
$verbosity = "m"
$verbosity = "m",
$toolpath = $null
)

. $PSScriptRoot\tools.ps1
Expand All @@ -23,11 +24,15 @@ function InstallDarcCli ($darcVersion) {
$darcVersion = $(Invoke-WebRequest -Uri $versionEndpoint -UseBasicParsing).Content
}

$arcadeServicesSource = 'https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json'
$arcadeServicesSource = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json'

Write-Host "Installing Darc CLI version $darcVersion..."
Write-Host "You may need to restart your command window if this is the first dotnet tool you have installed."
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
if (-not $toolpath) {
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g
}else {
& "$dotnet" tool install $darcCliPackageName --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath"
}
}

InstallDarcCli $darcVersion
26 changes: 20 additions & 6 deletions eng/common/darc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ while [[ $# > 0 ]]; do
verbosity=$2
shift
;;
--toolpath)
toolpath=$2
shift
;;
*)
echo "Invalid argument: $1"
usage
Expand Down Expand Up @@ -52,17 +56,27 @@ function InstallDarcCli {
InitializeDotNetCli
local dotnet_root=$_InitializeDotNetCli

local uninstall_command=`$dotnet_root/dotnet tool uninstall $darc_cli_package_name -g`
local tool_list=$($dotnet_root/dotnet tool list -g)
if [[ $tool_list = *$darc_cli_package_name* ]]; then
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name -g)
if [ -z "$toolpath" ]; then
local tool_list=$($dotnet_root/dotnet tool list -g)
if [[ $tool_list = *$darc_cli_package_name* ]]; then
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name -g)
fi
else
local tool_list=$($dotnet_root/dotnet tool list --tool-path "$toolpath")
if [[ $tool_list = *$darc_cli_package_name* ]]; then
echo $($dotnet_root/dotnet tool uninstall $darc_cli_package_name --tool-path "$toolpath")
fi
fi

local arcadeServicesSource="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json"
local arcadeServicesSource="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"

echo "Installing Darc CLI version $darcVersion..."
echo "You may need to restart your command shell if this is the first dotnet tool you have installed."
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g)
if [ -z "$toolpath" ]; then
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity -g)
else
echo $($dotnet_root/dotnet tool install $darc_cli_package_name --version $darcVersion --add-source "$arcadeServicesSource" -v $verbosity --tool-path "$toolpath")
fi
}

InstallDarcCli
6 changes: 4 additions & 2 deletions eng/common/dotnet-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ Param(
[string] $verbosity = "minimal",
[string] $architecture = "",
[string] $version = "Latest",
[string] $runtime = "dotnet"
[string] $runtime = "dotnet",
[string] $RuntimeSourceFeed = "",
[string] $RuntimeSourceFeedKey = ""
)

. $PSScriptRoot\tools.ps1
Expand All @@ -15,7 +17,7 @@ try {
if ($architecture -and $architecture.Trim() -eq "x86") {
$installdir = Join-Path $installdir "x86"
}
InstallDotNet $installdir $version $architecture $runtime $true
InstallDotNet $installdir $version $architecture $runtime $true -RuntimeSourceFeed $RuntimeSourceFeed -RuntimeSourceFeedKey $RuntimeSourceFeedKey
}
catch {
Write-Host $_
Expand Down
Loading