error MSB4057: The target "CreateZip" does not exist in the project. #72

Closed
opened 2026-01-29 16:28:35 +00:00 by claunia · 2 comments
Owner

Originally created by @arulconsultant on GitHub (Nov 16, 2019).

When tried to execute this command
dotnet-zip --framework .netcoreapp2.1 --runtime win7-x64

I came across the error \MyProject.Web.csproj : error MSB4057: The target "CreateZip" does not exist in the project.

Originally created by @arulconsultant on GitHub (Nov 16, 2019). When tried to execute this command dotnet-zip --framework .netcoreapp2.1 --runtime win7-x64 I came across the error \MyProject.Web.csproj : error MSB4057: The target "CreateZip" does not exist in the project.
Author
Owner

@qmfrederik commented on GitHub (Nov 21, 2019):

Can you try to run dotnet build first, and then dotnet-zip? That should work.

@qmfrederik commented on GitHub (Nov 21, 2019): Can you try to run `dotnet build` first, and then `dotnet-zip`? That should work.
Author
Owner

@qmfrederik commented on GitHub (Nov 22, 2019):

This should have been fixed with the latest versions, this should now just work:

dotnet new console
dotnet tool install --global dotnet-zip
dotnet zip install
dotnet zip

Please reopen if you still have this issue with the latest versions.

@qmfrederik commented on GitHub (Nov 22, 2019): This should have been fixed with the latest versions, this should now just work: ```bash dotnet new console dotnet tool install --global dotnet-zip dotnet zip install dotnet zip ``` Please reopen if you still have this issue with the latest versions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#72