title: Unable to find type [NuGet.PackageManager]. after visual studio 2019 update
body: <p>After updating visual studio 2019 community edition I get these errors in Package Manager Console. Any ideas anyone?</p>
  <p>Unable to find type [NuGet.PackageManager].
  At C:\Users********\source\repos\Hub\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:4 char:5</p>
  <ul>
  <li>if ([NuGet.PackageManager].Assembly.GetName().Version -lt 1.4)</li>
  <li>
  <pre><code>~~~~~~~~~~~~~~~~~~~~~~
  </code></pre>
  <ul>
  <li>CategoryInfo          : InvalidOperation: (NuGet.PackageManager:TypeName) [], RuntimeException</li>
  <li>FullyQualifiedErrorId : TypeNotFound</li>
  </ul>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:9</p>
  <ul>
  <li>
  <pre><code>    Set-DefaultScaffolder -Name CustomTemplate -Scaffolder T4Scaf ...
  </code></pre>
  </li>
  <li>
  <pre><code>    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  </code></pre>
  <ul>
  <li>CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException</li>
  <li>FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet</li>
  </ul>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:51 char:9</p>
  <ul>
  <li>
  <pre><code>    Set-DefaultScaffolder -Name CustomScaffolder -Scaffolder T4Sc ...
  </code></pre>
  </li>
  <li>
  <pre><code>    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  </code></pre>
  <ul>
  <li>CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException</li>
  <li>FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet</li>
  </ul>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\T4Scaffolding.1.0.8\tools\init.ps1:6 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name DbContext -Scaffolder T4Scaffolding.EFDbC ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\T4Scaffolding.1.0.8\tools\init.ps1:7 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name Repository -Scaffolder T4Scaffolding.EFRe ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\MvcScaffolding.1.0.9\tools\init.ps1:47 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name Controller -Scaffolder MvcScaffolding.Con ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\MvcScaffolding.1.0.9\tools\init.ps1:48 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name Views -Scaffolder MvcScaffolding.Views -S ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\MvcScaffolding.1.0.9\tools\init.ps1:49 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name Action -Scaffolder MvcScaffolding.Action  ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\MvcScaffolding.1.0.9\tools\init.ps1:50 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name UnitTest -Scaffolder MvcScaffolding.Actio ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>
  <p>Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE
  At C:\Users********\source\repos\Hub\packages\MvcScaffolding.1.0.9\tools\init.ps1:54 char:1</p>
  <ul>
  <li>Set-DefaultScaffolder -Name View -Scaffolder $viewScaffolder -Solutio ...</li>
  <li>
  <pre><code>  + CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
  
  </code></pre>
  </li>
  </ul>