title: Installing Dropbox API for C#
body: <p>I am following the instructions here for installing the Dropbox API for C#.</p>
  
  <p><a href="https://www.dropbox.com/developers/documentation/dotnet#install" rel="nofollow noreferrer">https://www.dropbox.com/developers/documentation/dotnet#install</a></p>
  
  <p>Those instructions are to run <code>Install-Package Dropbox.Api</code> in powershell.</p>
  
  <p>I get the following error:</p>
  
  <pre><code>PS &gt; Install-Package Dropbox.Api
  Install-Package : No match was found for the specified search criteria and package name 'Dropbox.Api'. Try
  Get-PackageSource to see all available registered package sources.
  At line:1 char:1
  + Install-Package Dropbox.Api
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
      + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
  </code></pre>
  
  <p>Doing a bit of googling there are suggestions for the general case of this error message to specify a <code>PackageSource</code>.  But I can not find the correct package source for dropbox.</p>
  
  <p>My sources of packages like this:</p>
  
  <pre><code>PS &gt; Get-PackageSource
  
  Name                             ProviderName     IsTrusted  Location
  ----                             ------------     ---------  --------
  PSGallery                        PowerShellGet    False      https://www.powershellgallery.com/api/v2/
  nuget.org                        NuGet            False      https://api.nuget.org/v3/index.json
  </code></pre>
  
  <p>How can I get the Dropbox API installed for C# for Visual Studio 2017?</p>
  
  <p>[EDIT] I tried:</p>
  
  <pre><code>PS &gt; Install-Package Get-PackageSource -Version 4.3.0
  Install-Package : A parameter cannot be found that matches parameter name 'Version'.
  At line:1 char:35
  + Install-Package Get-PackageSource -Version 4.3.0
  +                                   ~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Install-Package], ParameterBindingException
      + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
  </code></pre>
  
  <p>[EDIT]  I tried <code>Tools -&gt; NuGet Package Manager -&gt; Manage packages</code> and could find the package there.</p>
  
  <p>[EDIT] I tried installing Dropbox.Api using <code>Tools -&gt; NuGet Package Manager -&gt; Manage Packages</code> and get: <code>Package restore failed.  Rolling back package changes</code>.  There was a message that flashed before the error, but it was just the location of the project in my directory structure.</p>
  
  <p>[EDIT]  Following @smarx suggestion of running from package manager console rather than powershell:</p>
  
  <pre><code>Restoring packages for C:\Users\Michael Potter\Documents\Visual Studio 2017\Projects\ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj...
  Install-Package : Package Dropbox.Api 4.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Dropbox.Api 4.3.0 supports:
    - net45 (.NETFramework,Version=v4.5)
    - portable-dnxcore50+net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=net45+wp80+win8+wpa81+dnxcore50)
    - portable-net40+sl5+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile328)
  At line:1 char:1
  + Install-Package Dropbox.Api
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
  
  Install-Package : Package restore failed. Rolling back package changes for 'ConsoleApp1'.
  At line:1 char:1
  + Install-Package Dropbox.Api
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
  
  Time Elapsed: 00:00:00.9676774
  PM&gt; 
  </code></pre>
  
  <p>So that is very good progress as now we get some kind of error message.</p>