How do I access TypeScript definitions in ASP.NET 5 with the NuGet package manager? How do I access TypeScript definitions in ASP.NET 5 with the NuGet package manager? typescript typescript

How do I access TypeScript definitions in ASP.NET 5 with the NuGet package manager?


Currently angularjs.TypeScript.DefinitelyTyped nuget package supports only ASP.NET 4 folders structure. It puts files in your ~\Scripts\typings\angularjs\, (see nuget-automation source) folder you can reference it from there like this:

/// <reference path="../scripts/typings/angularjs/angular.d.ts" />

In order to use typings in ASP.NET 5 you have to just copy *.d.ts files from \packages\angularjs.TypeScript.DefinitelyTyped\[VERSION] to any folder accessible from your project and change reference path accordingly.

P.S. Feel free to create new issue in NugetAutomation on GitHub.