-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create a new app through Visual Studio #19475
Comments
Thanks for the report Matt! I'm not able to repro with preview 5... maybe VS changed once more the handling if this specific checkbox in mysterious ways :) When this error happens, if you cancel then in the same instance, go to the |
All that is written to the output window is:
|
After repeated attempts and repairing the WinUI workload, it started working again. |
No, that's not it as another attempt to create a new project also failed with the same message. I think there is something going wrong with detecting names of empty directories and how this is reported. If I try and create a new app with the Project Name of "UnoApp1" in the Location: "D:\source\UnoApp1" this fails. (Note that this is an empty directory that does exist.) |
Indeed, this is related to the folder name. We won't be able to support this scenario specifically, and the error message will become "The project name cannot match the destination folder name". This is causing the project to be placed inside another folder with the same name, which is not particularly useful. |
An error message that describes the actual issue is at least better than nothing. |
Current behavior
I get the message 'Uno Platform projects require the "Place solution and project in the same directory" option to be checked in the previous window' when trying to create a new app through Visual Studio, even when that box is checked.
Expected behavior
be able to create a new app
How to reproduce it (as minimally and precisely as possible)
Also happens if don't have the box unchecked first :(
Workaround
use Avalonia?
Works on UWP/WinUI
None
Environment
Other
NuGet package version(s)
No response
Affected platforms
No response
IDE
Visual Studio 2022
IDE version
Version 17.13.0 Preview 5.0
Relevant plugins
VSIX version 5.6.15.19
Anything else we need to know?
The drive and directory trying to create the app in definitely exist and have all relevant permissions
The text was updated successfully, but these errors were encountered: