-
-
Notifications
You must be signed in to change notification settings - Fork 197
Project id does not match directory name if it contains a dash #413
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
Comments
Hello @brianchirls , |
Hi @teobugslayer. I don't know where in the code the name gets replaced, but I'm pretty sure it happens at project creation, not any time later. It appears it's validated here. If some platforms can't handle a dash in the name, then names containing one should be rejected by the validator. |
Hello @brianchirls, Sorry for the late response. You're right that the project id is inconsistent. As @teobugslayer said we generate cross platform identifier and sanitize the given or default (the default id is In your case we're creating a folder named I'm going to fix the problem and will update you here in this thread. |
Fix appid inconsistent - NativeScript/nativescript-cli#413
See NativeScript/ios-jsc#77
To reproduce, run
tns create hello-world
.The project is created in a folder called
hello-world
, but the project id inside .tnsproject isorg.nativescript.helloworld
. Project ids inside other files (e.g. AndroidManifest.xml, build.xml) are inconsistent - some have the dash, and some don't.The text was updated successfully, but these errors were encountered: