NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

Nuget sources update adds BOM to config file #10866

Open quasarea opened 3 years ago

quasarea commented 3 years ago

Details about Problem

NuGet product used: NuGet.exe

Product version: 5.8.11

Worked before? Nope

Repro steps and/or sample project

type c:\temp\NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
...
</configuration>

nuget sources update -name AZDO -ConfigFile c:\temp\NuGet.Config -username PAT -password PAT
Package source "AZDO" was successfully updated.

type c:\temp\NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
...
</configuration>

Note - it is visible under cmd, powershell type command does not display those characters

erdembayar commented 3 years ago

Yes, I can repro this bug. It looks some XML encoding issue. image