dotnet pack fails when PackagePath is empty #3993

Closed
joelverhagen opened this Issue Nov 21, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@joelverhagen
Member

joelverhagen commented Nov 21, 2016

error MSB4018: The "PackTask" task failed unexpectedly.
error MSB4018: System.ArgumentException: String cannot be empty.
error MSB4018: Parameter name: entryName
<Content Include="prefercliruntime">
  <Pack>true</Pack>
  <PackagePath></PackagePath>
</Content>

/cc @livarcocc

@rrelyea

This comment has been minimized.

Show comment
Hide comment
@rrelyea

rrelyea Dec 8, 2016

Contributor

Talking with @rohit21agrawal -- this should target the root path "" as per the spec which says:
" Specifying an empty package path would add the file to the root of the package."
(https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target)

Contributor

rrelyea commented Dec 8, 2016

Talking with @rohit21agrawal -- this should target the root path "" as per the spec which says:
" Specifying an empty package path would add the file to the root of the package."
(https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment