This repository was archived by the owner on Apr 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11#tool "nuget:?package=xunit.runner.console"
22
3+ #addin "nuget:?package=Cake.Nuget"
34#addin "nuget:?package=NuGet.Core"
45#addin "nuget:?package=Cake.ExtendedNuGet"
56
7+
68//////////////////////////////////////////////////////////////////////
79// ARGUMENTS
810//////////////////////////////////////////////////////////////////////
@@ -25,7 +27,7 @@ var testProjectNames = new List<string>()
2527
2628var nupkgPath = "nupkg" ;
2729var nupkgRegex = $ "**/{ projectName } *.nupkg";
28- var nugetPath = toolpath + "/NuGet.CommandLine/tools/ nuget.exe" ;
30+ var nugetPath = toolpath + "/nuget.exe" ;
2931var nugetQueryUrl = "https://www.nuget.org/api/v2/" ;
3032var nugetPushUrl = "https://www.nuget.org/api/v2/package" ;
3133var NUGET_PUSH_SETTINGS = new NuGetPushSettings
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ No tasks will be executed.
1616. PARAMETER ScriptArgs
1717Remaining arguments are added here.
1818. LINK
19- http ://cakebuild.net
19+ https ://cakebuild.net
2020#>
2121
2222[CmdletBinding ()]
@@ -37,6 +37,10 @@ $DotNetVersion = "2.0.0";
3737$DotNetInstallerUri = " https://dot.net/v1/dotnet-install.ps1" ;
3838$NugetUrl = " https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
3939
40+ # Temporarily skip verification and opt-in to new in-proc NuGet
41+ $ENV: CAKE_SETTINGS_SKIPVERIFICATION = ' true'
42+ $ENV: CAKE_NUGET_USEINPROCESSCLIENT = ' true'
43+
4044# Make sure tools folder exists
4145$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path - Parent
4246$ToolPath = Join-Path $PSScriptRoot " tools"
@@ -82,10 +86,11 @@ if($FoundDotNetCliVersion -ne $DotNetVersion) {
8286
8387 Remove-PathVariable " $InstallPath "
8488 $env: PATH = " $InstallPath ;$env: PATH "
85- $env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
86- $env: DOTNET_CLI_TELEMETRY_OPTOUT = 1
8789}
8890
91+ $env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
92+ $env: DOTNET_CLI_TELEMETRY_OPTOUT = 1
93+
8994# ##########################################################################
9095# INSTALL NUGET
9196# ##########################################################################
You can’t perform that action at this time.
0 commit comments