14 questions
Azure DevOps Server (.Net Push does not work at All)
Diego Machado
0
Reputation points
Hi,
We have one minor issue witch are blocking to progress with our work.
One Azure DevOps Local Server does Public Nugget packages to local Feed.
Build Raw Error :
2025-02-11T04:48:02.2527415Z ##[section]Starting: DotNetCoreCLI
2025-02-11T04:48:02.2539014Z ==============================================================================
2025-02-11T04:48:02.2539165Z Task : .NET Core
2025-02-11T04:48:02.2539230Z Description : Build, test, package, or publish a dotnet application, or run a custom dotnet command
2025-02-11T04:48:02.2539375Z Version : 2.235.0
2025-02-11T04:48:02.2539437Z Author : Microsoft Corporation
2025-02-11T04:48:02.2539513Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/dotnet-core-cli
2025-02-11T04:48:02.2539629Z ==============================================================================
2025-02-11T04:48:03.1224409Z [command]C:\Windows\system32\chcp.com 65001
2025-02-11T04:48:03.1680796Z Active code page: 65001
2025-02-11T04:48:03.1819931Z Info: .NET Core SDK/runtime 2.2 and 3.0 are now End of Life(EOL) and have been removed from all hosted agents. If you're using these SDK/runtimes on hosted agents, kindly upgrade to newer versions which are not EOL, or else use UseDotNet task to install the required version.
2025-02-11T04:48:03.1980180Z [command]C:\agent\_work\_tool\dotnet\dotnet.exe "dotnet nuget push foo.nupkg -k 37a416ef-6843-4605-8c57-a19c4f204258/bf9ae9c3-841c-4a4d-a60d-b93ca75be181 -s https://gamadevops.gamalearn.com/tfs/DefaultCollection/37a416ef-6843-4605-8c57-a19c4f204258/_packaging/44dda7cc-5f8f-75e1-8b93-59d23fdf5320/nuget/v3/index.json" C:\agent\_work\78\a\SwiftAssessCore.Common.1.0.0.nupkg
2025-02-11T04:48:03.4867730Z Could not execute because the specified command or file was not found.
2025-02-11T04:48:03.4878934Z Possible reasons for this include:
2025-02-11T04:48:03.4879681Z * You misspelled a built-in dotnet command.
2025-02-11T04:48:03.4880923Z * You intended to execute a .NET program, but dotnet-dotnet nuget push foo.nupkg -k 37a416ef-6843-4605-8c57-a19c4f204258/bf9ae9c3-841c-4a4d-a60d-b93ca75be181 -s https://gamadevops.gamalearn.com/tfs/DefaultCollection/37a416ef-6843-4605-8c57-a19c4f204258/_packaging/44dda7cc-5f8f-75e1-8b93-59d23fdf5320/nuget/v3/index.json does not exist.
2025-02-11T04:48:03.4882072Z * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
2025-02-11T04:48:03.5896897Z ##[error]Error: The process 'C:\agent\_work\_tool\dotnet\dotnet.exe' failed with exit code 1
2025-02-11T04:48:03.5909742Z [command]C:\agent\_work\_tool\dotnet\dotnet.exe "dotnet nuget push foo.nupkg -k 37a416ef-6843-4605-8c57-a19c4f204258/bf9ae9c3-841c-4a4d-a60d-b93ca75be181 -s https://gamadevops.gamalearn.com/tfs/DefaultCollection/37a416ef-6843-4605-8c57-a19c4f204258/_packaging/44dda7cc-5f8f-75e1-8b93-59d23fdf5320/nuget/v3/index.json" C:\agent\_work\78\a\SwiftAssessCore.Common.2025.2.11.1.nupkg
2025-02-11T04:48:03.8616301Z Could not execute because the specified command or file was not found.
2025-02-11T04:48:03.8617346Z Possible reasons for this include:
2025-02-11T04:48:03.8617642Z * You misspelled a built-in dotnet command.
2025-02-11T04:48:03.8618269Z * You intended to execute a .NET program, but dotnet-dotnet nuget push foo.nupkg -k 37a416ef-6843-4605-8c57-a19c4f204258/bf9ae9c3-841c-4a4d-a60d-b93ca75be181 -s https://gamadevops.gamalearn.com/tfs/DefaultCollection/37a416ef-6843-4605-8c57-a19c4f204258/_packaging/44dda7cc-5f8f-75e1-8b93-59d23fdf5320/nuget/v3/index.json does not exist.
2025-02-11T04:48:03.8618919Z * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
2025-02-11T04:48:03.9668143Z ##[error]Error: The process 'C:\agent\_work\_tool\dotnet\dotnet.exe' failed with exit code 1
2025-02-11T04:48:03.9734931Z Info: Azure Pipelines hosted agents have been updated and now contain .Net 5.x SDK/Runtime along with the older .Net Core version which are currently lts. Unless you have locked down a SDK version for your project(s), 5.x SDK might be picked up which might have breaking behavior as compared to previous versions. You can learn more about the breaking changes here: https://docs.microsoft.com/en-us/dotnet/core/tools/ and https://docs.microsoft.com/en-us/dotnet/core/compatibility/ . To learn about more such changes and troubleshoot, refer here: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops#troubleshooting
2025-02-11T04:48:03.9739200Z ##[error]Dotnet command failed with non-zero exit code on the following projects : [
'C:\\agent\\_work\\78\\a\\SwiftAssessCore.Common.1.0.0.nupkg',
'C:\\agent\\_work\\78\\a\\SwiftAssessCore.Common.2025.2.11.1.nupkg'
]
2025-02-11T04:48:03.9911581Z ##[section]Finishing: DotNetCoreCLI
Sign in to answer