Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] Build error: The "PackTask" task returned false but did not log an error. #53

Closed
reinert opened this issue Sep 29, 2020 · 2 comments

Comments

@reinert
Copy link

reinert commented Sep 29, 2020

I'm trying to build this repo in Ubuntu 20.04 but I get the following error:

/usr/share/dotnet/sdk/3.1.402/Sdks/NuGet.Build.Tasks.Pack/build/NuGet.Build.Tasks.Pack.targets(198,5): error MSB4181: The "PackTask" task returned false but did not log an error.

Can you help me?

@baronfel
Copy link

This is an upstream issue with nuget, see this issue for workarounds. This should be fixed with .net 5.0 preview 2.

@reinert
Copy link
Author

reinert commented Sep 29, 2020

True, it's a temporary bug from nuget.

The workaround is to edit .paket\packet.restore.targets file and comment out the false line

Then, just make a dotnet fake build without reinstalling paket.

Thank you @baronfel for your quick help

@reinert reinert closed this as completed Sep 29, 2020
@reinert reinert changed the title Build error: The "PackTask" task returned false but did not log an error. [SOLVED] Build error: The "PackTask" task returned false but did not log an error. Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants