Skip to content
This repository was archived by the owner on Apr 18, 2020. It is now read-only.

Commit 1a4648b

Browse files
committed
cake nuget updated
1 parent 19204ed commit 1a4648b

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

build.cake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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

2628
var nupkgPath = "nupkg";
2729
var nupkgRegex = $"**/{projectName}*.nupkg";
28-
var nugetPath = toolpath + "/NuGet.CommandLine/tools/nuget.exe";
30+
var nugetPath = toolpath + "/nuget.exe";
2931
var nugetQueryUrl = "https://www.nuget.org/api/v2/";
3032
var nugetPushUrl = "https://www.nuget.org/api/v2/package";
3133
var NUGET_PUSH_SETTINGS = new NuGetPushSettings

build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ No tasks will be executed.
1616
.PARAMETER ScriptArgs
1717
Remaining 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
###########################################################################

0 commit comments

Comments
 (0)