How should I debug TypeScript files in ASP.NET 5? Suppose solution layout as on the following picture. Notice .ts Scripts are outside wwwroot folder and compiled .js file is
I've stumbled across the same problem. Right now, with Visual Studio 2015 Update 1, and I managed to overcome this issue by placing the tsconfig.json at the project root with the following content (note the exclude):
{
"compilerOptions": {
"module": "amd",
"noImplicitAny": false,
"sourceMap": false,
"target": "es5"
},
"exclude": [
"wwwroot",
"bower_components",
"node_modules"
]
}
With this, you can have your task runner to copy *.ts files to the wwwroot and VS will not complain about duplicates. In fact, it will completely ignore all files beneath the paths in the exclude section.