Hello @C# Note,
Welcome to Microsoft Q&A forum.
You can check following aspects:
- Extensions. Try to disable the installed extensions temporarily. See if the directory is created by the extensions.
- Reset VS settings. In case some settings about the paths/directories were wrongly configured in VS 2022, try to reset VS settings by opening "Developer Command Prompt for VS 2022" and running
devenv /ResetSettings
command. - Check the specific project(s). Can you confirm that when you tried to open and use those deleted projects/apps in Visual Studio 2022 before, they didn’t install anything to VS(like extension), and didn’t change any settings in VS?
- Did you set any global settings for those projects like system environment variables(especially the
Path
variable)? You can search and open "Edit the system environment variables" in Windows Search box => click Environment Variables option => select one of the variables, click Edit to check it. - Are there some hidden files in that directory, maybe "guide" VS to create some folders? You can try to remove the complete directory if it’s possible. Or you can open a Windows File Explorer, click View, Show, check the Hidden items options. Navigate to that directory/sub-directory, confirm that no hidden files/folders exist.
- Try to download and use Process Monitor tool. Monitor to see which process creates the directory and when the directory was created.
- Are you using any version control tools? Did you set any corresponding settings?
- Try to update VS 2022. Version 17.12.4 has been released these days.
- Try to reinstall VS 2022.
Feel free to let us know the results.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.