{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5448","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5448/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5448/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5448/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5448","id":113982967,"number":5448,"title":"Issue: I had to disable the Visual Studio integration with the TypeScript compiler","user":{"login":"kasajian","id":2384797,"avatar_url":"https://avatars.githubusercontent.com/u/2384797?v=3","gravatar_id":"","url":"https://api.github.com/users/kasajian","html_url":"https://github.com/kasajian","followers_url":"https://api.github.com/users/kasajian/followers","following_url":"https://api.github.com/users/kasajian/following{/other_user}","gists_url":"https://api.github.com/users/kasajian/gists{/gist_id}","starred_url":"https://api.github.com/users/kasajian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasajian/subscriptions","organizations_url":"https://api.github.com/users/kasajian/orgs","repos_url":"https://api.github.com/users/kasajian/repos","events_url":"https://api.github.com/users/kasajian/events{/privacy}","received_events_url":"https://api.github.com/users/kasajian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T05:31:19Z","updated_at":"2015-10-29T05:31:19Z","closed_at":null,"body":"When I build a Visual Studio project that has multiple .ts files, the build system invokes a single tsc.exe compiler using syntax similar to the following:\r\n\r\nC:\\[,,,,]\\tsc.exe  --sourcemap --target ES5 --noEmitOnError --locale en-US  \"C:\\[......]\\file1.ts\" \"C:\\[......]\\file2.ts\" \"C:\\[......]\\file3.ts\"\r\n\r\nNotice that the three .ts files are all included in a single invocation of the compiler.\r\n\r\nI would like to configure the Visual Studio project so that it invokes tsc.exe once for each .ts file.\r\n\r\nThat way, the resulting .js file will contain not only contents of the corresponding .ts file, but also the compiled contents from any .ts files it references using the /// references syntax.\r\n\r\nThen I would only mark few of the .ts files with the TypeScriptCompile BuildAction.   The other .ts files that are meant to be \"included\" will have their BuildAction *NOT* be set to TypeScriptCompile.\r\n\r\nIn addition, I need a way to mark a .ts file both \"TypeScriptCompile\" *and* \"Embeded Resource\".   The reason is because I am using a self-hosting service with EmbeddedResourceFileSystem from Microsoft.Owin.FileSystems.  I need the .ts file to be embedded so that it is served by the self-hosting web server -- that way it can be used for debugging from the browser when source-maps reference it.   But it also has to be marked as \"TypeScriptCompile\" so that it actually compiles.\r\n\r\nAs a work-around, I'm doing the following steps:\r\n1.  I removed the Microsoft.TypeScript.targets from the .csproj file.  (the .csproj file didn't have it to begin with.   I had to add it there.  See http://stackoverflow.com/questions/33374040/how-do-i-enable-the-typescript-tab-of-a-visual-studio-project-thats-a-console-o/33374041#33374041 )\r\n\r\n2. put \"library\" style .ts files in a \"mod\" folder (stands for modules), but they're really separate namespaces (internal modules)\r\n\r\n3. put all of my \"app\" style .ts files, the ones I want to compile, into a main root folder.   These .ts files may reference one or more .ts files from the mod folder using /// references syntax.\r\n\r\n4.  I have a batch file where for every .ts file in the main root folder it invokes the tsc compiler and generates a output .js file which gets placed in an \"output\" folder.   Those are the actual .js files that are referenced from html.\r\n\r\nAll of the .ts files and .js files in the output folder, along with .map files, are marked as \"Embedded\" so that they get served by the self-hosting server using EmbeddedResourceFileSystem.\r\n\r\nI also added an uglifyjs2 step in there, but I won't discuss that here 'cause that's just an extra optimization step that it's strictly necessary.\r\n\r\nSuffice it to say, I'm not using the Visual Studio TypeScript integration at all, which is unfortunate.\r\n\r\nDo you guys think that what I'm trying to do is main-stream enough where it should be supported natively?\r\n"}}