You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is there a reference implementation of tsconfig.json being used in Visual Studio? #6504
This is probably related to #6317 but not exactly the same.
Having not used Visual Studio for a while I've just come back to it and been trying to use tsconfig.json in a standard ASP.Net MVC 5 project. For reasons that aren't clear to me the tsconfig.json doesn't appear to be being detected by Visual Studio in the way I would hope. There doesn't appear to be a reference implementation that I can refer to of how tsconfig.json should look in a Visual Studio project. Here's my assumptions / experiences:
tsconfig.json is included with a Build Action of "Content" and a Copy to Output Directory of "Do not copy"
tsconfig.json can sit in the root of the Visual Studio project (alongside package.json etc)
you can't stop Visual Studio forcing these options upon your csproj:
It's non-negotiable; you take them out it'll put them right back in next time you edit your project properties in VS.
I've kind of given up on tsconfig.json in Visual Studio now as I think I'm somehow missing the point. It would be great if there was an example implementation to refer back to. I notice that there doesn't seem to be a File -> New Project experience for tsconfig.json which is a shame.
changed the title [-]Reference implementation of tsconfig.json being used in Visual Studio[/-][+]Is there a reference implementation of tsconfig.json being used in Visual Studio?[/+]on Jan 15, 2016
Thanks Paul van Brenk (@paulvanbrenk) - I'll give it a try. This guide is for ASP.Net 5 project types - I assume that old school projects (pre-ASP.Net 5) will work as well?
Activity
[-]Reference implementation of tsconfig.json being used in Visual Studio[/-][+]Is there a reference implementation of tsconfig.json being used in Visual Studio?[/+]paulvanbrenk commentedon Jan 15, 2016
Your second assumption is incorrect,
tsconfig.jsonhas to be in ascriptsfolder, and can't be in the root at this time.More info see the Using TypeScript With ASP.NET 5.
johnnyreilly commentedon Jan 15, 2016
Thanks Paul van Brenk (@paulvanbrenk) - I'll give it a try. This guide is for ASP.Net 5 project types - I assume that old school projects (pre-ASP.Net 5) will work as well?
paulvanbrenk commentedon Jan 19, 2016
No, this only works in ASP.NET 5 for now.. we're planning on making changes in the next public release of TypeScript to support more project types.
johnnyreilly commentedon Jan 19, 2016
Thanks Paul van Brenk (@paulvanbrenk) - so part of TypeScript 1.8?
paulvanbrenk commentedon Jan 19, 2016
John Reilly (@johnnyreilly) Yes, that's the plan.