nuget.config - Specify ‘packages’ Folder Location

Unfortunately, the official way to specify 'packages' folder location never worked for me. Every time I copy and paste the official snippet, it just does not work. I have no idea why, but when I use this snippet, everything just works as I want it to!

<?xml version="1.0" encoding="utf-8"?>  
<settings>  
    <repositoryPath>..\packages</repositoryPath>
</settings>  

Cheers!