visuald icon indicating copy to clipboard operation
visuald copied to clipboard

Project File/Directory management is broken.

Open KaylanTussey opened this issue 1 month ago • 0 comments

If you delete the generated source file in a newly created project, then right click the project in the solution explorer and go to Add -> New Folder, a directory naming bug occurs on disk. The project folder inside the solution folder gets renamed to whatever you named the new folder, and a new folder with the default name of "pkg" is created in the wrongly named project folder. But if you leave the generated source file and add a new folder to the project in the same way, this problem doesn't happen. The project folder is still correctly named, and the new folder is created inside the project folder along with the generated source file as expected.

To recreate the bug, you can create a new console project. Then right click the generated source file in the solution explorer and click remove, then delete. Then right click the project in the solution explorer and click Add, then New Folder. Name the folder what ever you want. Then if you browse to the solution folder in a file explorer, you should see the project folder is now named the same as the file you created. And if you open it, there is a folder named "pkg".

1: A new console project with default settings. 1

2: Deleted the generated source file that has the same name as the project. 2

3:Right clicked on the project in solution explorer, then added a new folder called NewFolder. 3

KaylanTussey avatar May 13 '24 04:05 KaylanTussey