Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dotnet build failed with zero errors and warnings on mac m1

When I try to build my service from the terminal with the dotnet build command, I receive this error:

MSBuild version 17.4.0-preview-22428-01+14c24b2d3 for .NET

Build FAILED.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:00.00

And when I try to run it with dotnet run --project ..., I receive this message:

The build failed. Fix the build errors and run again.

Interestingly, when I run this service via Visual Studio everything builds and runs okay.

The reason why I need to run it from the terminal is because the project is implemented in a microservice architecture, and in order to lunch it completely I need to run 14 microservices.

like image 951
Tajib Smajlović Avatar asked Dec 05 '25 17:12

Tajib Smajlović


1 Answers

I am having the same issue, seems to be a bug on .NET 7 RC1

As a workaround I'm doing the following:

dotnet build --disable-build-servers
dotnet run --no-build
like image 198
Gabriel Cappelli Avatar answered Dec 08 '25 09:12

Gabriel Cappelli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!