title: Visual Studio 2017 SDK does not implement all methods in PowerShell
body: <p>I am executing a PowerShell script when initializing a NuGet dependency with the Visual Studio NuGet Package Manager and I have an error stating that EnvDTE.ProjectItems.AddFolder(string, string) is not implemented :</p>
  
  <pre><code>Exception calling "AddFolder" with "1" argument(s): "Exception calling "InvokeMethod" with "3" argument(s): "Not implemented (Exception from HRESULT: 0x80004001 (E_NOTIMPL))""
  </code></pre>
  
  <p>Here is the script in question :</p>
  
  <pre><code>$deployFolder = $solution.Projects | where-object { $_.ProjectName -eq "Packages" } | select -first 1
  
  $folderItems = Get-Interface $deployFolder.ProjectItems ([EnvDTE.ProjectItems])
  
  # add all our support deploy scripts to our Support solution folder
  ls $deployTarget | foreach-object {
      if (Test-Path $_.FullName -PathType Container) {
          $folderItems.AddFolder($_.FullName)
      }
  } &gt; $null
  </code></pre>
  
  <p>The same problem happens with EnvDTE.ProjectItems.AddFromDirectory(String)</p>
  
  <p>from the microsoft documentation AddFolder should be implemented:
  <a href="https://docs.microsoft.com/en-ca/dotnet/api/envdte.projectitems?view=visualstudiosdk-2017#Methods" rel="nofollow noreferrer">https://docs.microsoft.com/en-ca/dotnet/api/envdte.projectitems?view=visualstudiosdk-2017#Methods</a></p>
  
  <p>I have installed the Visual Studio 2017 SDK and have no problem calling:</p>
  
  <blockquote>
    <p>EnvDTE.ProjectItems.AddFromFile(String)</p>
  </blockquote>
  
  <p>Are the docs wrong or am I missing something?</p>