File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ $TempDirectory = "$PSScriptRoot\\.nuke\temp"
1818
1919$DotNetGlobalFile = " $PSScriptRoot \\global.json"
2020$DotNetInstallUrl = " https://dot.net/v1/dotnet-install.ps1"
21- $DotNetChannel = " Current "
21+ $DotNetChannel = " STS "
2222
23- $env: DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1
2423$env: DOTNET_CLI_TELEMETRY_OPTOUT = 1
25- $env: DOTNET_MULTILEVEL_LOOKUP = 0
24+ $env: DOTNET_NOLOGO = 1
2625
2726# ##########################################################################
2827# EXECUTION
@@ -61,9 +60,15 @@ else {
6160 ExecSafe { & powershell $DotNetInstallFile - InstallDir $DotNetDirectory - Version $DotNetVersion - NoPath }
6261 }
6362 $env: DOTNET_EXE = " $DotNetDirectory \dotnet.exe"
63+ $env: PATH = " $DotNetDirectory ;$env: PATH "
6464}
6565
6666Write-Output " Microsoft (R) .NET SDK version $ ( & $env: DOTNET_EXE -- version) "
6767
68+ if (Test-Path env:NUKE_ENTERPRISE_TOKEN) {
69+ & $env: DOTNET_EXE nuget remove source " nuke-enterprise" > $null
70+ & $env: DOTNET_EXE nuget add source " https://f.feedz.io/nuke/enterprise/nuget" -- name " nuke-enterprise" -- username " PAT" -- password $env: NUKE_ENTERPRISE_TOKEN > $null
71+ }
72+
6873ExecSafe { & $env: DOTNET_EXE build $BuildProjectFile / nodeReuse:false / p:UseSharedCompilation= false - nologo - clp:NoSummary -- verbosity quiet }
6974ExecSafe { & $env: DOTNET_EXE run -- project $BuildProjectFile -- no- build -- $BuildArguments }
Original file line number Diff line number Diff line change @@ -14,11 +14,10 @@ TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp"
1414
1515DOTNET_GLOBAL_FILE=" $SCRIPT_DIR //global.json"
1616DOTNET_INSTALL_URL=" https://dot.net/v1/dotnet-install.sh"
17- DOTNET_CHANNEL=" Current "
17+ DOTNET_CHANNEL=" STS "
1818
1919export DOTNET_CLI_TELEMETRY_OPTOUT=1
20- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
21- export DOTNET_MULTILEVEL_LOOKUP=0
20+ export DOTNET_NOLOGO=1
2221
2322# ##########################################################################
2423# EXECUTION
5453 " $DOTNET_INSTALL_FILE " --install-dir " $DOTNET_DIRECTORY " --version " $DOTNET_VERSION " --no-path
5554 fi
5655 export DOTNET_EXE=" $DOTNET_DIRECTORY /dotnet"
56+ export PATH=" $DOTNET_DIRECTORY :$PATH "
5757fi
5858
5959echo " Microsoft (R) .NET SDK version $( " $DOTNET_EXE " --version) "
6060
61+ if [[ ! -z ${NUKE_ENTERPRISE_TOKEN+x} && " $NUKE_ENTERPRISE_TOKEN " != " " ]]; then
62+ " $DOTNET_EXE " nuget remove source " nuke-enterprise" & > /dev/null || true
63+ " $DOTNET_EXE " nuget add source " https://f.feedz.io/nuke/enterprise/nuget" --name " nuke-enterprise" --username " PAT" --password " $NUKE_ENTERPRISE_TOKEN " --store-password-in-clear-text & > /dev/null || true
64+ fi
65+
6166" $DOTNET_EXE " build " $BUILD_PROJECT_FILE " /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet
6267" $DOTNET_EXE " run --project " $BUILD_PROJECT_FILE " --no-build -- " $@ "
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net6 .0</TargetFramework >
5+ <TargetFramework >net8 .0</TargetFramework >
66 <RootNamespace ></RootNamespace >
77 <NoWarn >CS0649;CS0169</NoWarn >
88 <NukeRootDirectory >..</NukeRootDirectory >
1111 </PropertyGroup >
1212
1313 <ItemGroup >
14- <PackageReference Include =" Nuke.Common" Version =" 7 .0.3 " />
14+ <PackageReference Include =" Nuke.Common" Version =" 9 .0.4 " />
1515 </ItemGroup >
1616
1717</Project >
You can’t perform that action at this time.
0 commit comments