dotnet / dotnet/docs

This tutorial needs to be updated for top-level statements

Open
#40,769 0 comments 0 reactions 0 assignees View on GitHub
dotnet-csharp/svc roslyn-sdk/subsvc user-feedback
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Code doesn't work

### Description

The existing instructions won't work, because the default console app template now uses top-level statements. It should be updated to work on an app with top level statements.

### Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix.md

### Document Version Independent Id

a286e20b-1e43-dc57-e0fb-5a9dee7ec3f6

### Article author

@BillWagner

### Metadata

* ID: 6e3fc905-7aa1-7f5e-9bfe-fbcef461ad5e
* Service: **dotnet-csharp**
* Sub-service: **roslyn-sdk**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.