title: NuGet.config configuration in such away that it would create the packages directory if they do Not exists
body: <p>Here is info about our technical development environment :</p>
  <p>-Microsoft Visual Studio Enterprise 2019</p>
  <p>-.Net Core 3.1</p>
  <p>-DevExpress v21.2.6 platform</p>
  <ul>
  <li>PostgreSQL 14.2, compiled by Visual C++ build 1914, 64-bit</li>
  </ul>
  <p>Microsoft.AspNet.Providers.Core   2.0.0</p>
  <p>Microsoft.EntityFrameworkCore   5.0.15</p>
  <p>Microsoft.EntityFrameworkCore.Design   5.0.15</p>
  <p>Microsoft.EntityFrameworkCore.Tools   5.0.15</p>
  <p>Microsoft.OpenApi   1.2.3</p>
  <p>Npgsql   5.0.12</p>
  <p>Npgsql.EntityFrameworkCore.PostgreSQL   5.0.10</p>
  <p>Swashbuckle.AspNetCore   6.3.0</p>
  <p>Since I’m using .Net Core 3.1 , I ensured the following setting:</p>
  <ul>
  <li>In Visual Studio 2019,  Tools -  Nuget Package Manager - Package Manager Settings
  Default package management format:   Packages.Reference</li>
  </ul>
  <p>Within my solution’s directory’s  NuGet.config file, I have the following xml markup code:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;configuration&gt;
    &lt;config&gt;
      &lt;add key=&quot;globalPackagesFolder&quot; value=&quot;.\packages&quot; /&gt;
    &lt;/config&gt;
      &lt;packageSources&gt;
      &lt;add key=&quot;Nexus&quot; value=http://blahblah.com/nuget-group/ /&gt;
    &lt;/packageSources&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>Therefore, the packages directory is at the root of the solution’s directory.</p>
  <p>I do Not want the packages directory to be committed to the Git code repository, therefore, if anyone does a fresh brand new pull for the first time said solution code then they will Not have the packages directory.</p>
  <p>Therefore, if someone opens up said solution for the very first time in Visual Studio 2019, they will get the following types of errors:</p>
  <pre><code>Severity    Code
  Error   NETSDK1064
  Description
  Package Microsoft.AspNetCore.Http.Abstractions, version 2.2.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
  
  Severity    Code
  Error   NETSDK1064
  Description
  Package Microsoft.CodeAnalysis.Analyzers, version 2.9.4 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions.
  </code></pre>
  <p>Could someone please tell me how I can go about modifying said configuration in such away that it would create the packages directory if they do Not exists ( preferably some kind of switch setting within the NuGet.config file ) ?</p>