You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04
Task log
==============================================================================
Task : NuGet
Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
Version : 2.227.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
==============================================================================
Found tool in cache: NuGet 4.9.6 x64
Detected NuGet version 4.9.6.8 / 4.9.6+a32bce39889f724fbd11cfd12e946f802168b583
/usr/bin/mono /home/az_devops_agent/agent/_work/_tool/NuGet/4.9.6/x64/nuget.exe push /home/az_devops_agent/agent/_work/334/release-pipeline/nupkgs/example.4.0.0.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/XXX/XXX/nuget/v3/index.json -ApiKey VSTS -Verbosity Detailed
NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'.
Data at the root level is invalid. Line 11, position 1.
NuGet.Configuration.NuGetConfigurationException: NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'. ---> System.Xml.XmlException: Data at the root level is invalid. Line 11, position 1.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) [0x00029] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res) [0x00000] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace () [0x0012c] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x002d4] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in<7ff8f64b3a334d14838f500f5ad27e36>:0
at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r) [0x00025] in<8d6554d17b084e8689fdd20da40c74a1>:0
at System.Xml.Linq.XContainer.ReadContentFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) [0x00005] in<8d6554d17b084e8689fdd20da40c74a1>:0
at System.Xml.Linq.XDocument.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) [0x00024] in<8d6554d17b084e8689fdd20da40c74a1>:0
at NuGet.Configuration.XmlUtility.LoadSafe (System.IO.Stream input, System.Xml.Linq.LoadOptions options) [0x0000e] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.XmlUtility.GetDocument (System.String fullPath) [0x00007] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.XmlUtility.GetOrCreateDocument (System.Xml.Linq.XDocument content, System.String fullPath) [0x0000b] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.SettingsFile+<>c__DisplayClass27_0.<.ctor>b__0 () [0x00017] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.SettingsFile+<>c__DisplayClass38_0.<ExecuteSynchronized>b__0 () [0x00000] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
--- End of inner exception stack trace ---
at NuGet.Configuration.SettingsFile+<>c__DisplayClass38_0.<ExecuteSynchronized>b__0 () [0x00087] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLocked (System.String filePath, System.Action action) [0x00087] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.SettingsFile.ExecuteSynchronized (System.Action ioOperation) [0x0001a] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.SettingsFile..ctor (System.String directoryPath, System.String fileName, System.Boolean isMachineWide) [0x00087] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.Settings.ReadSettings (System.String settingsRoot, System.String settingsPath, System.Boolean isMachineWideSettings) [0x00013] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.Settings.LoadUserSpecificSettings (System.String root, System.String configFileName, System.Boolean useTestingGlobalPath) [0x00053] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0
at NuGet.Configuration.Settings.LoadSettingsForSpecificConfigs (System.String root, System.String configFileName, System.Collections.Generic.List`1[T] validSettingFiles, NuGet.Configuration.IMachineWideSettings machineWideSettings, System.Boolean loadUserWideSettings, System.Boolean useTestingGlobalPath) [0x00007] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0 at NuGet.Configuration.Settings.LoadSettings (System.String root, System.String configFileName, NuGet.Configuration.IMachineWideSettings machineWideSettings, System.Boolean loadUserWideSettings, System.Boolean useTestingGlobalPath) [0x00072] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0 at NuGet.Configuration.Settings.LoadDefaultSettings (System.String root, System.String configFileName, NuGet.Configuration.IMachineWideSettings machineWideSettings) [0x00000] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0 at NuGet.CommandLine.Command.Execute () [0x00066] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0 at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) [0x001b2] in<dc1b484fc03b4c9e94db6d2032a7a13d>:0 ##[error]The nuget command failed with exit code(1) and error(NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'. Data at the root level is invalid. Line 11, position 1.)##[error]Packages failed to publish
Relevant log output
/usr/bin/mono /home/az_devops_agent/agent/_work/_tool/NuGet/4.9.6/x64/nuget.exe push /home/az_devops_agent/agent/_work/334/release-pipeline/nupkgs/example.4.0.0.nupkg -NonInteractive -Source https://pkgs.dev.azure.com/XXX/XXX/nuget/v3/index.json -ApiKey VSTS -Verbosity Detailed
NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'.
Data at the root level is invalid. Line 11, position 1.
NuGet.Configuration.NuGetConfigurationException: NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'. ---> System.Xml.XmlException: Data at the root level is invalid. Line 11, position 1.
##[error]The nuget command failed with exit code(1) and error(NuGet.Config is not valid XML. Path: '/home/az_devops_agent/.config/NuGet/NuGet.Config'.
Data at the root level is invalid. Line 11, position 1.)
##[error]Packages failed to publish
Aditional info
We had this issue with the UseDotnet Task a few weeks ago. They fixed the bug with that task, but not with this one.
See [18839](https://github.com/microsoft/azure-pipelines-tasks/issues/18839)
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Task name
Nuget
Task version
2.227.0
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04
Task log
Relevant log output
Aditional info
The text was updated successfully, but these errors were encountered: