NuGet.Config defective, check NuGet.Config - solution

After installing Update1 for VS 2015, I had a problem trying to add a local path for Nuget Manager. The message was: "NuGet.Config is invalid, check NuGet.Config"

In my case, it was enough to find nuget.config in the path: C: \ Users \ _my_user_name_ \ AppData \ Roaming \ NuGet \

Nuget.config is empty (but the size is 1KB). I just filled it with content:

<?xml version="1.0" encoding="utf-8"?> <configuration> </configuration> 

And the problem in VS did not appear again.

+6
source share
1 answer

In my case,% appdata% \ nuget \ nuget.config existed and was populated ... but its xml header claimed utf-8 when the file was really fully encoded - Unicode. Escape how utf-8 bom made me go again.

0
source

All Articles