.NET Core 6 SDK installs fine, but cannot build anything.
VS.NET 2022 and VS.NET 2019 on the machine. Both are up to date.
VS.NET 2022 can create a project, but cannot build it. There are either no errors at all or a single "MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down.... "
Rebuild started...
------ Rebuild All started: Project: PollyWhat, Configuration: Debug Any CPU ------
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Restoring packages for C:\try\polly\PollyWhat\PollyWhat.csproj...
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\try\polly\PollyWhat\obj\project.assets.json
Restored C:\try\polly\PollyWhat\PollyWhat.csproj (in 2 ms).
NuGet package restore finished.
Build started 11/22/2021 6:33:05 PM.
Target GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
Target CoreGenerateAssemblyInfo:
Skipping target "CoreGenerateAssemblyInfo" because all output files are up-to-date with respect to the input files.
Target CoreCompile:
MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\Users\ivank\AppData\Local\Temp\2\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
The error doesn't seem to mind me setting maximum number of parallel project builds to 1
Trying to compile with dotnet CLI doesn't fare any better. Nothing gets created.
>dotnet build -v d
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 11/22/2021 6:37:54 PM.
0>Process = "C:\Program Files\dotnet\dotnet.exe"
MSBuild executable path = "C:\Program Files\dotnet\sdk\6.0.100\MSBuild.dll"
Command line arguments = ""C:\Program Files\dotnet\sdk\6.0.100\dotnet.dll" build -v d"
Current directory = "C:\try\polly\PollyShit"
MSBuild version = "17.0.0+c9eb9dd64"
Same for dotnet new. Even the --help option doesn't print anyting
Describe the bug
.NET Core 6 SDK installs fine, but cannot build anything.
VS.NET 2022 and VS.NET 2019 on the machine. Both are up to date. VS.NET 2022 can create a project, but cannot build it. There are either no errors at all or a single "MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down.... "
The error doesn't seem to mind me setting maximum number of parallel project builds to 1
Trying to compile with
dotnet CLI
doesn't fare any better. Nothing gets created.Same for
dotnet new
. Even the--help
option doesn't print anytingHere's the output of
dotnet --info