Unable to create new Teams apps projects with VS 2022 17.10.3 or VS 2022 Preview 17.11.0 Preview 2.1
Opened this issue · 6 comments
Describe the bug
Unable to create new Teams apps projects with VS 2022 17.10.3 or VS 2022 Preview 17.11.0 Preview 2.1
To Reproduce
- New project -> Microsoft Teams app -> Next
- Enter project name -> Create
- Select Custom Search Results template -> Create
Error is shown
Expected behavior
Solution is created and loaded
Screenshots
VS 2022 Preview 17.11.0 Preview 2.1
Scaffolded project folder, note the missing .sln
file.
Additional context
I repaired the Visual Studio installation via the Visual Studio Installer however the issue persists after reboot.
E:\ is configured as a DevDrive (ReFS), however I get the same error when using C:\ (NTFS)
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
Hi @garrytrinder, thanks for reporting it. Can you try to run Visual Studio as administrator and then create the project?
Just tried running as administrator and I get the same error.
Seems like I'm experiencing the same issue as #11834 but I'm using Visual Studio Enterprise.
After investigating, it caused by the unexpected behavior of VS by checking Place solution and project in the same directory when creating a new project. I have reported a problem in VS community.
For working around, you can uncheck Place solution and project in the same directory to create the new project and then refactor the folder structure. Sorry for any inconvenience and I will continue to follow up the issue.
Thanks for the update @Alive-Fish
I've unchecked the box and can confirm that the project is created without error 🎉