Cov txheej txheem:

Kuv yuav ntxiv TypeScript hauv Visual Studio 2017 li cas?
Kuv yuav ntxiv TypeScript hauv Visual Studio 2017 li cas?

Video: Kuv yuav ntxiv TypeScript hauv Visual Studio 2017 li cas?

Video: Kuv yuav ntxiv TypeScript hauv Visual Studio 2017 li cas?
Video: Yuav Tsis Ruam Ntxiv by (Pov Lis) 2024, Hlis ntuj nqeg
Anonim

Teem TypeScript versions hauv Visual Studio 2017 version 15.3

  1. Txoj nyem rau ntawm qhov project node hauv Solution Explorer.
  2. Nyem Properties.
  3. Mus rau qhov TypeScript Tsim tab.
  4. Hloov TypeScript version mus rau qhov xav tau version lossis "siv qhov tseeb muaj" kom ib txwm ua raws li qhov tshiab tshaj plaws tau teeb tsa.

Tib neeg kuj nug, Kuv yuav tsim cov ntaub ntawv TypeScript hauv Visual Studio 2017 li cas?

Siv TypeScript hauv Visual Studio 2017

  1. Kauj ruam 1: Tsim ib qhov tshiab Asp. Net Core project.
  2. Kauj ruam 2: Ntxiv Microsoft. AspNetCore. StaticFiles ntawm NuGet.
  3. Kauj ruam 3: Ntxiv ib daim ntawv tais ceev tseg rau TypeScript.
  4. Kauj ruam 4: Configure TypeScript compiler.
  5. Kauj ruam 5: Teeb NPM.
  6. Kauj ruam 6: Teeb lub gulp.
  7. Kauj ruam 7: Sau ib nplooj ntawv HTML.
  8. Kauj ruam 8: Khiav qhov project.

Ib yam li ntawd, kuv yuav pib TypeScript hauv Visual Studio li cas? Hloov TypeScript rau hauv JavaScript

  1. Kauj ruam 1: Tsim ib daim ntawv TS yooj yim. Qhib VS Code ntawm qhov khoob khoob thiab tsim lub ntiaj teb nyob zoo.
  2. Kauj ruam 2: Khiav lub TypeScript tsim. Khiav Tsim Ua Haujlwm (Ctrl + Ua haujlwm + B) los ntawm lub ntiaj teb Terminal ntawv qhia zaub mov.
  3. Kauj ruam 3: Ua tus TypeScript Tsim lub neej ntawd.
  4. Kauj Ruam 4: Tshawb xyuas cov teeb meem tsim.

Ntxiv mus, kuv yuav paub li cas yog tias TypeScript raug teeb tsa hauv Visual Studio 2017?

Mus rau: C:Program Files (x86)Microsoft SDKs TypeScript , muaj koj pom cov npe ntawm hom 0.9, 1.0 1.1. Nkag mus tus tus lej siab uas koj muaj (hauv qhov no 1.1) Luam tus directory thiab khiav hauv CMD tus command tsc -v, you get tus version.

Kuv yuav tsim ib qhov project TypeScript hauv Visual Studio 2019 li cas?

vsix cov ntaub ntawv hauv C:Program Files (x86)Microsoft SDKs TypeScript . Koj tuaj yeem ntxiv TypeScript cov ntaub ntawv mus rau qhov uas twb muaj lawm qhov project siv lub Add > New Item dialog. Koj tuaj yeem ua tau tsim a qhov project hom HTML Application nrog TypeScript siv qhov Add> Tshiab Qhov project dialog. Qhov no qhov project hom yog nyob rau hauv Installed-> (Templates)-> Visual C#.

Pom zoo: