dotnet / dotnet/format

[NETSDKE2E][Regression]Failed to run format project with "test.cmd" command.

Open
#2,206 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

Steps to Reproduce
1.install Net 9.0.100-rc.1.24421.9 SDK on window11-x64.
2.Checkout the dotnet-format repo. git clone https://github.com/dotnet/format.git
3.Update the gobal.json by removing the "sdk" configuration.
before
![image](https://github.com/user-attachments/assets/6ac3ce75-55fc-4144-8379-16979c5a54a6)

After
![image](https://github.com/user-attachments/assets/7dc05926-bd4f-4f19-8d15-02d7a09c0a34)

and then update the tool version to SDK version that you test
![image](https://github.com/user-attachments/assets/04a96b25-3e36-4c73-ace3-c3dbadf7529a)

Add add /tlp:verbosity=q in tools.ps1(C:\xxx\xxx\format\eng\common)
![image](https://github.com/user-attachments/assets/ebd9db15-ecd1-4904-b71f-9746e6aaba8b)

4.Run Restore.cmd.
5.Run Build.cmd.
6.Run Test.cmd /v:d.

**Expected Result:**
Run successfully.
**Actual Result:**
Restore.cmd successfully
Build.cmd successfully
But
Test.cmd failed
![image](https://github.com/user-attachments/assets/020a5e4c-3fcc-4f74-b8d3-c3a2826b9a09)

note: we get binlog via Test.cmd /v:d /bl:out.binlog and log file has been attached.
![image](https://github.com/user-attachments/assets/d22da6f6-47ce-47b7-9c80-bed51207798b)
[outbin.zip](https://github.com/user-attachments/files/16706325/outbin.zip)

dotnet --info:
.NET SDK:
Version: 9.0.100-rc.1.24421.9
Commit: 1854762845
Workload version: 9.0.100-manifests.7c2e5dfe
MSBuild version: 17.12.0-preview-24421-01+c07c23be2

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26244
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-rc.1.24421.9\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 9.0.0-rc.1.24420.11
Architecture: x64
Commit: static

.NET SDKs installed:
9.0.100-rc.1.24421.9 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-rc.1.24416.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-rc.1.24420.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0-rc.1.24420.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.