简体   繁体   中英

How do I use Typescript definition (typings) files installed via NuGet in VS2017?

I'm a little unsure on how I would go about using a typescript definition file that has been installed via NuGet in 2017. I'd like to use the 'modal' Bootstrap Jquery method on a JQuery Selector in order to show a modal popup box, but the TypeScript compiler does not recognise the '.modal' method, even though the Bootstrap definition file has been installed correctly.

在此输入图像描述

Even though the definitelytyped definition files have been installed via NuGet, the typescript compiler doesn't seem to be finding them.

Are there any steps I need to take in order for the compiler to recognise the definition files as being installed?

Seems like nuget isn't supported any longer for installing DefinitelyTyped definitions for Asp.Net Core.

References :

Visual Studio Forum

DefinitelyTyped Github page

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM