Closed v-Judy closed 1 year ago
I'm having the same problem
Unfortunately I'm not able to repro this myself - @v-Judy (or anyone else) - please include the full contents of the C# output window here (ideally with dotnet.server.trace
set to Trace
).
Typically this is a symptom of the project failing to load.
While I can't repro the specific error message- I can say that F5 -> select .NET 5+ and .Net Core
does nothing for me (on both windows and mac) when devkit is installed. Without devkit it generates assets.
@WardenGnaw I'm moving this over to you as I don't think the Roslyn server has any involvement in F5 here (since we're not generating assets?) with devkit installed.
(The error message and screenshot in the bug description do not match the repro steps. The screenshot shows O# but the repro steps say using devkit. I was unable to repro any issue in O#).
F5 to run the project, then select .NET 5+ and .Net Core, the VsCode not respond.
This expected. If you have C# Dev Kit installed. >NET 5+ and .NET Core will not work. You will want to use the C# option. See https://code.visualstudio.com/docs/csharp/debugging#_debug-with-f5
Unfortunately I'm not able to repro this myself - @v-Judy (or anyone else) - please include the full contents of the C# output window here (ideally with
dotnet.server.trace
set toTrace
).
The C# output windows' content show as below:
Typically this is a symptom of the project failing to load.
This is indeed a symptom that the project cannot be loaded. The log information of the project is as follows:
Thanks for the logs - that indeed confirms its a project loading issue. I'm transferring this issue over to the devkit side since they're responsible for the project load.
Issue here - https://github.com/microsoft/vscode-dotnettools/issues/551
Environment data
VS Code version: 1.81.1 C# Extension version: v 2.1.2 C# Dev Kit: v 0.5.2
Steps to reproduce
1.81.1
)v 0.5.2
) with C# extension (v2.1.2
)code .
to open the project.Note
v 2.1.2
).Actual behavior
Expected behavior
When I debug or run the project, it could create the configurations file successfully.