@@ -33,7 +33,6 @@ target_arch='x64'
33
33
configuration=' '
34
34
runtime_source_feed=' '
35
35
runtime_source_feed_key=' '
36
- init_nuget=false
37
36
38
37
if [ " $( uname) " = " Darwin" ]; then
39
38
target_os_name=' osx'
@@ -83,8 +82,6 @@ Options:
83
82
--runtime-source-feed Additional feed that can be used when downloading .NET runtimes and SDKs
84
83
--runtime-source-feed-key Key for feed that can be used when downloading .NET runtimes and SDKs
85
84
86
- --init-nuget Run nuget --version.
87
-
88
85
Description:
89
86
This build script installs required tools and runs an MSBuild command on this repository
90
87
This script can be used to invoke various targets, such as targets to produce packages
@@ -211,9 +208,6 @@ while [[ $# -gt 0 ]]; do
211
208
-ci)
212
209
ci=true
213
210
;;
214
- -init-nuget)
215
- init_nuget=true
216
- ;;
217
211
-binarylog|-bl)
218
212
binary_log=true
219
213
;;
@@ -365,30 +359,6 @@ export MSBUILDDEBUGPATH="$log_dir"
365
359
_tmp_restore=$restore
366
360
restore=true
367
361
368
- if [[ " $init_nuget " == true ]]; then
369
- InitializeBuildTool
370
-
371
- function RunBuildTool {
372
- " $_InitializeBuildTool " " $@ " || {
373
- local exit_code=$?
374
- # We should not Write-PipelineTaskError here because that message shows up in the build summary
375
- # The build already logged an error, that's the reason it failed. Producing an error here only adds noise.
376
- echo " Build failed with exit code $exit_code . Check errors above."
377
- if [[ " $ci " == " true" ]]; then
378
- Write-PipelineSetResult -result " Failed" -message " nuget execution failed."
379
- # Exiting with an exit code causes the azure pipelines task to log yet another "noise" error
380
- # The above Write-PipelineSetResult will cause the task to be marked as failure without adding yet another error
381
- ExitWithExitCode 0
382
- else
383
- ExitWithExitCode $exit_code
384
- fi
385
- }
386
- }
387
-
388
- echo ' Running dotnet nuget --version (issue: https://github.com/NuGet/Home/issues/12159#issuecomment-1278360511)'
389
- RunBuildTool " nuget" " --version"
390
- fi
391
-
392
362
InitializeToolset
393
363
394
364
restore=$_tmp_restore =
@@ -410,4 +380,4 @@ if [ "$only_build_repo_tasks" != true ]; then
410
380
MSBuild $_InitializeToolset -p:RepoRoot=" $repo_root " ${msbuild_args[@]+" ${msbuild_args[@]} " }
411
381
fi
412
382
413
- ExitWithExitCode 0
383
+ ExitWithExitCode 0
0 commit comments