dotnet / dotnet/roslynator

<!DOCTYPE Project> breaks CLI

Open
#1,646 0 comments 0 reactions 0 assignees View on GitHub
Area-CLI Bug
Dominant language
C#
Stars
3.5k
Forks
294
Avg merge
2h 30m
Merged PRs (30d)
4

Description

```xml


net9.0
Enable
Latest
false
Latest
All

```

`dotnet build` works, but `roslynator analyze` fails with:

```
Analyze 'redacted' 1/2
No analyzers found to analyze 'redacted'
error CS5001: Program does not contain a static 'Main' method suitable for an entry point
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the shown project XML containing , first comparing `dotnet build` with `roslynator analyze`. Trace how `roslynator analyze` discovers the project and analyzers, then verify that the same project is analyzed without the CS5001 error or the “No analyzers found” message.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.