{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7128","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7128/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7128/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7128/events","html_url":"https://github.com/Microsoft/TypeScript/issues/7128","id":134473149,"number":7128,"title":"Visual Studio is not implicitly referencing d.ts files in the solution","user":{"login":"davismj","id":3845823,"avatar_url":"https://avatars.githubusercontent.com/u/3845823?v=3","gravatar_id":"","url":"https://api.github.com/users/davismj","html_url":"https://github.com/davismj","followers_url":"https://api.github.com/users/davismj/followers","following_url":"https://api.github.com/users/davismj/following{/other_user}","gists_url":"https://api.github.com/users/davismj/gists{/gist_id}","starred_url":"https://api.github.com/users/davismj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davismj/subscriptions","organizations_url":"https://api.github.com/users/davismj/orgs","repos_url":"https://api.github.com/users/davismj/repos","events_url":"https://api.github.com/users/davismj/events{/privacy}","received_events_url":"https://api.github.com/users/davismj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Question","name":"Question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-02-18T03:40:47Z","updated_at":"2016-02-23T01:33:33Z","closed_at":"2016-02-19T23:42:43Z","body":"<!--\r\nThank you for contributing to TypeScript! Please review this checklist\r\n       before submitting your issue.\r\n[ ] Many common issues and suggestions are addressed in the FAQ\r\n     https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n[ ] Search for duplicates before logging new issues\r\n    https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\r\n[ ] Questions are best asked and answered at Stack Overflow\r\n    http://stackoverflow.com/questions/tagged/typescript\r\n\r\nFor bug reports, please include the information below.\r\n__________________________________________________________ -->\r\n\r\n**TypeScript Version:** \r\n\r\n1.8.0-beta (Visual Studio 2015 Community)\r\n\r\n**Code**\r\n\r\nAccording to [this StackOverflow question](http://stackoverflow.com/questions/21803257/how-is-visual-studios-implicit-referencing-of-typescript-files-supposed-to-work), I have checked and double-checked that all files in question have been set, unset, and reset to `Build Action: TypeScriptCompile`. Code is arranged as follows:\r\n\r\n>\r\nsrc\r\n| - modules\r\n| | - config.d.ts\r\n| | - config.ts\r\n\r\n**config.d.ts**\r\n```ts\r\ninterface Configuration {\r\n  debug?: boolean;\r\n}\r\n```\r\n\r\n**config.ts**\r\n```ts\r\nexport var config: Configuration = { // \"Cannot find name 'Configuration'.\"\r\n  debug: true\r\n};\r\n```\r\n\r\n**tsconfig.json (for reference)**\r\n```json\r\n{\r\n  \"compilerOptions\": {\r\n    \"rootDir\": \"src/\",\r\n    \"outDir\": \"dist/\",\r\n    \"target\": \"es5\",\r\n    \"module\": \"system\",\r\n    \"diagnostics\": true,\r\n    \"declaration\": false,\r\n    \"noImplicitAny\": false,\r\n    \"removeComments\": true,\r\n    \"noLib\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true\r\n  },\r\n  \"exclude\": [\r\n    \"typings/main.d.ts\",\r\n    \"typings/main\",\r\n    \"node_modules\"\r\n  ]\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\nVisual Studio should discover the `d.ts` file and expose the interface to all other TypeScript modules.\r\n\r\n**Actual behavior:** \r\nVisual Studio does not expose the interface to any other module unless the reference is explicitly declared using `/// <reference path=\"config.d.ts\" />`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/187466076","html_url":"https://github.com/Microsoft/TypeScript/issues/7128#issuecomment-187466076","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/7128","id":187466076,"user":{"login":"davismj","id":3845823,"avatar_url":"https://avatars.githubusercontent.com/u/3845823?v=3","gravatar_id":"","url":"https://api.github.com/users/davismj","html_url":"https://github.com/davismj","followers_url":"https://api.github.com/users/davismj/followers","following_url":"https://api.github.com/users/davismj/following{/other_user}","gists_url":"https://api.github.com/users/davismj/gists{/gist_id}","starred_url":"https://api.github.com/users/davismj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davismj/subscriptions","organizations_url":"https://api.github.com/users/davismj/orgs","repos_url":"https://api.github.com/users/davismj/repos","events_url":"https://api.github.com/users/davismj/events{/privacy}","received_events_url":"https://api.github.com/users/davismj/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T01:33:33Z","updated_at":"2016-02-23T01:33:33Z","body":"In my case, this `Notification` is an internal module."}}