title: 'Dotnet failed to pack' error when trying to publish a powershell module to local repository
body: <p>I'm working on MacOS 10.15, and I have a clone of the <a href="https://github.com/RamblingCookieMonster/PSRabbitMq" rel="nofollow noreferrer">PSRabbitMq</a> powershell module. I'm trying to publish it into a local repository I created:</p>
  
  <pre><code>Register-PSRepository -Name TestPSRepo -SourceLocation '/tmp/powershell_test_repository' -InstallationPolicy Trusted
  Publish-Module -Path '&lt;path_to_module&gt;/PSRabbitMq' -Repository TestPSRepo -NuGetApiKey 'test' -Verbose
  </code></pre>
  
  <p>Getting this error:</p>
  
  <pre><code>Publish-PSArtifactUtility : Failed to generate the compressed file for module '/usr/local/bin/dotnet failed to pack: error
  '.
  At /Users/my_user/.local/share/powershell/Modules/PowerShellGet/2.2.1/PSModule.psm1:10944 char:17
  + ...             Publish-PSArtifactUtility @PublishPSArtifactUtility_Param ...
  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : InvalidOperation: (:) [Write-Error], WriteErrorException
  + FullyQualifiedErrorId : FailedToCreateCompressedModule,Publish-PSArtifactUtility
  </code></pre>
  
  <p>(I have <code>dotnet-runtime-3.0.0-osx</code> installed) </p>
  
  <p>Does anyone know what is this error all about?</p>
  
  <p>Thanks!</p>