title: .NET Core NuGet restore fails with private NuGet feed (VSTS CI Build)
body: <p>This issue is regarding the continuous integration feature in visual studio team services, specifically in automated builds.</p>
  
  <p>I've set up a build definition to build my .net core mvc application.</p>
  
  <p>It is using .NET core v1 and compiling against .net framework 4.5.2.</p>
  
  <p>I've followed the instructions here:</p>
  
  <p><a href="https://www.visualstudio.com/en-us/docs/build/apps/aspnet/ci/build-aspnet-core" rel="nofollow noreferrer">https://www.visualstudio.com/en-us/docs/build/apps/aspnet/ci/build-aspnet-core</a></p>
  
  <p>I have a private NuGet feed set up in VSTS
  Here is the command that adds the package feed source:</p>
  
  <pre><code>Sources Add -Name "CiiDLFeed" -UserName "&lt;username&gt;" -Password "&lt;password&gt;" -ConfigFile $(Build.SourcesDirectory)/Nuget.config -Source https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json
  </code></pre>
  
  <p>The error I'm receiving:</p>
  
  <blockquote>
    <p>error: Unable to load the service index for source
    <a href="https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json" rel="nofollow noreferrer">https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json</a>.
    error:   Password decryption is not supported on .NET Core for this
    platform. The following feed uses an encrypted password: 'CiiDLFeed'.
    You can use a clear text password as a workaround.</p>
  </blockquote>
  
  <p>In response to this, I added "-StorePasswordInClearText" parameter to the NuGet source add command:</p>
  
  <pre><code>Sources Add -Name "CiiDLFeed" -UserName "&lt;username&gt;" -Password "&lt;password&gt;" -ConfigFile $(Build.SourcesDirectory)/Nuget.config -Source https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json -StorePasswordInClearText
  </code></pre>
  
  <p>Now, I get a 401 error:</p>
  
  <blockquote>
    <p>error: Unable to load the service index for source
    <a href="https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json" rel="nofollow noreferrer">https://mycompany.pkgs.visualstudio.com/_packaging/DLFeed/nuget/v3/index.json</a>.
    error:   Response status code does not indicate success: 401
    (Unauthorized).</p>
  </blockquote>
  
  <p>I'm using the same exact credentials that work correctly in a separate build definition, accessing the same nuget feed (a .NET web forms app), so it should not be giving me a 401.</p>
  
  <p>I've also tried simply referencing the library dll's instead of NuGet packages in a private feed, but that appears to be not possible with .NET Core:</p>
  
  <blockquote>
    <p>.NET core projects only support referencing .NET framework assemblies
    in this release. To reference other assemblies, they need to be
    included in a NuGet package and reference that package.</p>
  </blockquote>