dotnet / dotnet/sdk

Conversion of file-based app to project-based app has diagnostic errors

Open
#50,936 4 comments 0 reactions 0 assignees View on GitHub
Area-run-file untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Steps to repro
1. Open VSC Insiders
2. Create folder/workspace
3. Create hello.cs
4. Add any code and save
5. Run `dotnet project convert hello.cs`

### Actual

Hello.cs in file-based app

Image

Hello.cs in project-based app after conversion

Image

### Expectation
No diagnostic errors -> project runs fine

**Note:** Reloading the VS Code window makes diagnostics go away

### Environment Info
.NET SDK: (10.0.100-rc.2.25468.101)
VS Code Insiders: 1.105.0-insider
C# Dev Kit Extension: V 1.61.12
C# Extension: V 2.92.18

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.