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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With