dotnet / format

Home for the dotnet-format command
MIT License
1.92k stars 174 forks source link

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

Open vdanche opened 3 weeks ago

vdanche commented 3 weeks ago

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

After image

and then update the tool version to SDK version that you test image

Add add /tlp:verbosity=q in tools.ps1(C:\xxx\xxx\format\eng\common) image

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

note: we get binlog via Test.cmd /v:d /bl:out.binlog and log file has been attached. image 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

vdanche commented 3 weeks ago

not happens on previous RC1 build.

JoeRobich commented 3 weeks ago

I think we may need to adjust the test plan for dotnet-format. Development has moved to the SDK repo. This repo has been archived and isn't being updated.

The format tests can now be found at https://github.com/dotnet/sdk/tree/main/test/dotnet-format.Tests/tests

vdanche commented 3 weeks ago

@JoeRobich Thanks, we'll test it after adjusting the test plan for dotnet -format.

FYI @richaverma1 @marcpopMSFT