{"action":"created","issue":{"url":"https://api.github.com/repos/Rychard/GnomeServer/issues/13","labels_url":"https://api.github.com/repos/Rychard/GnomeServer/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Rychard/GnomeServer/issues/13/comments","events_url":"https://api.github.com/repos/Rychard/GnomeServer/issues/13/events","html_url":"https://github.com/Rychard/GnomeServer/issues/13","id":110795188,"number":13,"title":"Update README | Build: Cannot find namespace 'GnomeServer'. GnomeApp","user":{"login":"Temeez","id":3135774,"avatar_url":"https://avatars.githubusercontent.com/u/3135774?v=3","gravatar_id":"","url":"https://api.github.com/users/Temeez","html_url":"https://github.com/Temeez","followers_url":"https://api.github.com/users/Temeez/followers","following_url":"https://api.github.com/users/Temeez/following{/other_user}","gists_url":"https://api.github.com/users/Temeez/gists{/gist_id}","starred_url":"https://api.github.com/users/Temeez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Temeez/subscriptions","organizations_url":"https://api.github.com/users/Temeez/orgs","repos_url":"https://api.github.com/users/Temeez/repos","events_url":"https://api.github.com/users/Temeez/events{/privacy}","received_events_url":"https://api.github.com/users/Temeez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-10-10T13:35:53Z","updated_at":"2015-10-12T15:49:47Z","closed_at":null,"body":"When trying to build the master branch, there is a lot of errors. Could this be because the Gnomoria RC version has gone up a few?\r\n\r\n```\r\nSeverity\tCode\tDescription\tProject\tFile\tLine\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t32\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\gnome\\index.ts\t16\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\gnome\\index.ts\t16\r\nError\t\tBuild: Statements are not allowed in ambient contexts.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\Interfaces.d.ts\t1\r\nError\t\tBuild: Cannot find name 'ErrorGeneratingOutput'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\Interfaces.d.ts\t1\r\nError\tTS1036\tStatements are not allowed in ambient contexts.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\Interfaces.d.ts\t1\r\nError\tTS2304\tCannot find name 'ErrorGeneratingOutput'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\Interfaces.d.ts\t1\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t2\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t2\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t6\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t6\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t10\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t10\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t14\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t14\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t27\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t27\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t28\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t28\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t29\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t29\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t30\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t30\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t31\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t31\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t32\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t61\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t61\r\nError\t\tBuild: Cannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t62\r\nError\tTS2503\tCannot find namespace 'GnomeServer'.\tGnomeApp\tC:\\Users\\Temeez\\Desktop\\GnomeServer-master\\GnomeApp\\app\\models\\models.ts\t62\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Rychard/GnomeServer/issues/comments/147443888","html_url":"https://github.com/Rychard/GnomeServer/issues/13#issuecomment-147443888","issue_url":"https://api.github.com/repos/Rychard/GnomeServer/issues/13","id":147443888,"user":{"login":"Rychard","id":2145848,"avatar_url":"https://avatars.githubusercontent.com/u/2145848?v=3","gravatar_id":"","url":"https://api.github.com/users/Rychard","html_url":"https://github.com/Rychard","followers_url":"https://api.github.com/users/Rychard/followers","following_url":"https://api.github.com/users/Rychard/following{/other_user}","gists_url":"https://api.github.com/users/Rychard/gists{/gist_id}","starred_url":"https://api.github.com/users/Rychard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rychard/subscriptions","organizations_url":"https://api.github.com/users/Rychard/orgs","repos_url":"https://api.github.com/users/Rychard/repos","events_url":"https://api.github.com/users/Rychard/events{/privacy}","received_events_url":"https://api.github.com/users/Rychard/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T15:49:47Z","updated_at":"2015-10-12T15:49:47Z","body":"Okay, I think I've figured it out.\r\n\r\n1. In the <kbd>Solution Explorer</kbd>, open `GnomeApp\\app\\models\\Interfaces.tt`\r\n2. Remove the following line (line 5, I believe):\r\n\r\n  ```csharp\r\n  <#@ assembly name=\"$(TargetDir)$(TargetFileName)\" #>\r\n  ```\r\n3. In the <kbd>Solution Explorer</kbd>, right-click on `GnomeApp` and select <kbd>Properties</kbd>\r\n4. On the left-hand side, choose the <kbd>TypeScript Build</kbd> section.\r\n5. At the top, ensure that <kbd>Configuration:</kbd> is set to `Release`\r\n6. At the bottom, uncheck <kbd>Do not emit outputs if any errors are reported</kbd>\r\n7. Repeat steps 4 and 5, changing <kbd>Configuration:</kbd> to `Debug`.\r\n8. Build the solution. (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>B</kbd>)\r\n9. In the <kbd>Solution Explorer</kbd>, locate `GnomeApp\\app\\models\\Interfaces.tt`\r\n10. Right click on the file, and select <kbd>Run Custom Tool</kbd>\r\n11. Build the solution again.\r\n\r\nAt this point, you shouldn't have any issues.\r\n\r\nThe line that is removed from `GnomeApp\\app\\models\\Interfaces.tt` (in step 2) caused the `.tt` file to rely on the compiled output of the `GnomeApp` project.  Since the project settings for the `GnomeApp` project prevented it from emitting any assemblies if even a single error was detected, the output assembly was never produced.\r\n\r\nIn short, the project failed to build because one of the files was missing a namespace, and the `.tt` file (where this namespace was defined) failed to generate because it relied on the assembly of the project.\r\n\r\nAt any rate, I've pushed a commit (211d538daf88504ae6baed1b28c23e7c36bce997) that applies the steps above, which *should* prevent this from being an issue, but the steps above should fix it if you don't want to pull everything down again."}}