build.cmd fails on main due to IDE0055 formatting errors
- Dominant language
- C#
- Stars
- 20.7k
- Forks
- 4.3k
- PR merge metrics
- PR metrics pending
Description
# build.cmd fails on main due to IDE0055 formatting errors
## Repro
```pwsh
git clone https://github.com/dotnet/razor.git
cd razor
./restore.cmd
./build.cmd
```
## Expected
Build succeeds without analyzer failures.
## Actual
`build.cmd` promotes warnings to errors, so hundreds of `IDE0055` (Fix formatting) diagnostics appear in
`src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces` for the `netstandard2.0`, `net8.0`, and `net9.0`
target frameworks, causing the build to fail locally and in CI.
Contributor guide
Research direction
Start by cloning the repository and running restore.cmd followed by build.cmd, as shown in the reproduction steps. Inspect the IDE0055 diagnostics under src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces for the netstandard2.0, net8.0, and net9.0 targets; done means the build succeeds without analyzer failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100