-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NETSDKE2E] Only "build succeed" log is displayed after running .net format project with "test.cmd" command. #9842
Comments
is it an expected behavior for only "Build succeeded" log displaying after running test.cmd? |
I took a look at this repro. So, first of all, the The The
I am not sure how the line "echo === COMMAND LINE === >" was skipped before, probably with one more console logger setting. Nevertheless, is such output fine for your goals? |
Should be completed by PR #9810. |
@AR-May it still repro on today's build-9.0.100-preview.4.24206.1(runtime-9.0.0-preview.4.24204.3), we'll keep tracking. |
It takes some time to propagate changes to dotnet. I can see that msbuild with my change is still not inserted there. Let's wait a bit more. Please do not forget that you also need to replace the build parameters |
@AR-May checked on 9.0.100-preview.4.24221.5, the issue still repro. you mean we need to add /v:q when running restore.cmd/build.cmd/test.cmd? Run restore.cmd /v:q, dup build succeed still repro, but the bug #9614 is fixed. |
@vdanche adding the |
@AR-May I have replaced /clp:ErrorsOnly;NoSummary with /v:q in file tools.ps1(C:\Users\v-danche\format\eng\common), but still repro. Is there anything else we need to do? |
@vdanche hmm, when I checked the fix, it worked. It has been a while, I might have forgotten some details about the fix, or maybe I made some mistake when I checked it. I will re-check. |
@vdanche I checked again the restore command and the fix with adding
Can you try to verify this again? I see couple of possible reasons it did not work for you: maybe the file was not saved (happens to me often) or the wrong version of sdk was installed? I see that it downloads preview 1 sdk. As for the test.cmd, you need to set the detailed verbosity, not the quiet: |
@AR-May Thank you very much Details steps as below,
5.Run Restore.cmd. |
@vdanche good. I thought a bit more about the fix for the |
@AR-May we just try to add /tlp:verbosity=q in tools.ps1(C:\Users\v-danche\format\eng\common), we also can get the correct log. Thanks |
Issue Description
Only "build succeed" log is displayed after running .net format project with "test.cmd" command.
Steps to Reproduce
1.install Net 9.0.100-preview.3.24157.13 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
After

4.Run Restore.cmd.
5.Run Build.cmd.
6.Run Test.cmd.
Expected Behavior
Restore/build and test project without any issue and the log can be displayed well.
Actual Behavior
previous log template

dotnet --info
C:\Windows\system32>dotnet --info
.NET SDK:
Version: 9.0.100-preview.3.24157.13
Commit: 34940c02d7
Workload version: 9.0.100-manifests.4c56e492
MSBuild version: 17.10.0-preview-24127-03+6f44380e4
Runtime Environment:
OS Name: Windows
OS Version: 10.0.20348
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\9.0.100-preview.3.24157.13\
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 9.0.0-preview.3.24156.25
Architecture: x64
Commit: 8330db9986
.NET SDKs installed:
9.0.100-preview.3.24157.13 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-preview.3.24156.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-preview.3.24156.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 9.0.0-preview.3.24156.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
Analysis
No response
Versions & Configurations
No response
The text was updated successfully, but these errors were encountered: