dotnet build fails without any warning or error
See original GitHub issueDescribe the bug
dotnet build
fails on an empty new csharp project.
dotnet version: 7-rc1 os: macos m1
To Reproduce
uname -a
>Darwin havarnov 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64
dotnet --version
> 7.0.100-rc.1.22431.12
dotnet new console -n fails
cd fails
dotnet build
> 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
fails.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
Program.cs
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to find the reason for a failed Build without any error or ...
While building using Visual Studio 2010, Build fails without any error or warning. However building the .csproj using MsBuild is successful.
Read more >Visual Studio 2019 Build Failed But No Errors ...
Go to the Error list window and select 'Build Only' to filter; Go to Tools > Options > Projects and Solutions > Build...
Read more >C# Compiler Options to report errors and warnings
C# Compiler Options for errors and warnings. These options suppress or enable warnings, and control warnings as errors.
Read more >dotnet build command - .NET CLI
The dotnet build command builds a project and all of its ... By default, MSBuild displays warnings and errors at all verbosity levels....
Read more >Untitled
- YouTube Visual Studio fails build with no errors listed - Unity Forum Using Rider under Windows without Visual Studio: prerequisites dotnet build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@havarnov There is a know bug which will be released in RTM. CTRL+C caused MSBuild server process to reject subsequent builds. The symptoms you have reported shows it is most likely this bug. I am closing this issue as fixed. Please feel free to reopen it if you experience it after RTM/GA. Thank very much for excellent bug report.
@havarnov in the meantime, could you try setting the environment variable
DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER
to1
and see if that clears the issue up?