dotnet / dotnet/vscode-csharp

[C# Dev Kit] Unable to generate assets for build and debug when the project is renamed

Open
#5,748 0 comments 0 reactions 1 assignee Claimed by @dibarbet View on GitHub
Bug Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Platform | VSCode Version | Extension | Version | Comment
-- | -- | -- | -- | --
  |   | .NET Install Tool for Extension Authors | v1.6.0 | .NET Install Tool for Extension Authors - Visual Studio Marketplace
Windows X64  Windows ARM64Linux x64 | VSCode Insiders1.79.0 VSCode Stable 1.78.2 | C# Dev Kit ExtensionC# Extension | v0.1.54v2.0.190 | Pipelines - Run 0.1.54+0c1389a69f (azure.com)Pipelines - Run 20230526.9 (visualstudio.com)

Repro rate: 100%

Steps to reproduce:
1. Create a new project of any type\open a folder containing a project;
2. Rename previous step's project;
3. F1 > Generate Assets for Launching and Debug

Expected Results: assets for launch\debugging are generated after renaming the project.

Actual Results: assets creation for build and debug fails with "Error: ENOENT: no such file or directory" error message.

![image](https://github.com/dotnet/vscode-csharp/assets/46729679/b422f0ba-ac75-4b53-97b1-859e2964ad54)

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.