question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build fails without any warning or error

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
rokoneccommented, Oct 19, 2022

@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.

3reactions
baronfelcommented, Oct 12, 2022

@havarnov in the meantime, could you try setting the environment variable DOTNET_CLI_DO_NOT_USE_MSBUILD_SERVER to 1 and see if that clears the issue up?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found