I have an Azure Pipeline which is setup to do:
- Use .NET Core SDK 3.1.x
- Dotnet restore
- Dotnet Build
- Dotnet Publish
Use .NET Core task looks like that and it run before all others mentioned above:
All the jobs are executed successfully apart the Dotnet Publish
This job crashes with these errors:
AND
[error]Error: The process 'C:\hostedtoolcache\windows\dotnet\dotnet.exe' failed with exit code 1
[warning]Info: Azure Pipelines hosted agents have been updated to contain .Net Core 3.x SDK/Runtime along with 2.2 & 2.1. Unless you have locked down a SDK version for your project(s), 3.x SDK might be picked up which might have breaking behavior as compared to previous versions.
I tried different version variation for Use .NET Core SDK Job, however all of them lead to the same error.
Thanks in advance. Appreciate if someone could give me a clue what I might be doing wrong.
$(buildPlatform)
set to? – Ian Kemp