Home:ALL Converter>dotnet publish invokes unexpected call to Azure devops

dotnet publish invokes unexpected call to Azure devops

Ask Time:2021-01-12T05:09:15         Author:Kirsten

Json Formatter

In response to this question I am typing

dotnet publish -r linux-x64

at the command line To my surprise dotnet tries to invoke one of my Azure build pipelines

My screen shows the following

C:\Users\kirst\source\repos\BlazorApp1>dotnet publish --runtime linux-x64 Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore... C:\Program Files\dotnet\sdk\5.0.101\NuGet.targets(131,5): error : Unable to load the service index for source https://pkgs.dev.azure.com/blahblah/nuget/v3/index.json. [C:\Users\kirst\source\repos\BlazorApp1\BlazorApp1.sln] C:\Program Files\dotnet\sdk\5.0.101\NuGet.targets(131,5): error : Response status code does not indicate success: 401 (Unauthorized). [C:\Users\kirst\source\repos\BlazorApp1\BlazorApp1.sln]

I don't use Azure Devops on this project, but I do for another project, and that pipeline started failing today.

Why is the project trying to call devops?

The Publish profile is set to a folder

publish profile

Author:Kirsten,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/65674561/dotnet-publish-invokes-unexpected-call-to-azure-devops
yy