{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/413","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/413/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/413/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/413","id":66714378,"number":413,"title":"Project id does not match directory name if it contains a dash","user":{"login":"brianchirls","id":492291,"avatar_url":"https://avatars.githubusercontent.com/u/492291?v=3","gravatar_id":"","url":"https://api.github.com/users/brianchirls","html_url":"https://github.com/brianchirls","followers_url":"https://api.github.com/users/brianchirls/followers","following_url":"https://api.github.com/users/brianchirls/following{/other_user}","gists_url":"https://api.github.com/users/brianchirls/gists{/gist_id}","starred_url":"https://api.github.com/users/brianchirls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianchirls/subscriptions","organizations_url":"https://api.github.com/users/brianchirls/orgs","repos_url":"https://api.github.com/users/brianchirls/repos","events_url":"https://api.github.com/users/brianchirls/events{/privacy}","received_events_url":"https://api.github.com/users/brianchirls/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-06T21:51:51Z","updated_at":"2015-04-27T14:07:43Z","closed_at":null,"body":"See https://github.com/NativeScript/ios-runtime/issues/77\r\n\r\nTo reproduce, run `tns create hello-world`.\r\n\r\nThe project is created in a folder called `hello-world`, but the project id inside .tnsproject is `org.nativescript.helloworld`. Project ids inside other files (e.g. AndroidManifest.xml, build.xml) are inconsistent - some have the dash, and some don't."},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/96667189","html_url":"https://github.com/NativeScript/nativescript-cli/issues/413#issuecomment-96667189","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/413","id":96667189,"user":{"login":"Fatme","id":760518,"avatar_url":"https://avatars.githubusercontent.com/u/760518?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatme","html_url":"https://github.com/Fatme","followers_url":"https://api.github.com/users/Fatme/followers","following_url":"https://api.github.com/users/Fatme/following{/other_user}","gists_url":"https://api.github.com/users/Fatme/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatme/subscriptions","organizations_url":"https://api.github.com/users/Fatme/orgs","repos_url":"https://api.github.com/users/Fatme/repos","events_url":"https://api.github.com/users/Fatme/events{/privacy}","received_events_url":"https://api.github.com/users/Fatme/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T14:07:43Z","updated_at":"2015-04-27T14:07:43Z","body":"Hello @brianchirls,\r\n\r\nSorry for the late response. \r\n\r\nYou'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 `org.nativescript.<app name>`) app identifier. But we doesn't sanitize the `app name`. And actually here we get the inconsistent. \r\n In your case we're creating a folder named `hello-world`, `AndroidManifest.xml` is replaced with the sanitized application identifier e.g `org.nativescript.helloworld`. After that `android update project -p <project directory>` is called and creates build.xml with `org.nativescript.hello-world`. \r\n\r\nI'm going to fix the problem and will update you here in this thread."}}