-
Notifications
You must be signed in to change notification settings - Fork 0
Using TypeScript With ASP.NET 5
Using TypeScript with ASP.NET v5 requires that you setup your project in a specific way, for more information about ASP.NET v5 see the ASP.NET v5 documentation.
We start by creating a new empty ASP.NET v5 project in Visual Studio 2015, of you're not familiar with ASP.NET v5 follow this tutorial for more information.
Next add a scripts folder to the root of the project, this is where we'll add the TypeScript files and the tsconfig.json file to set the compiler options.
Finally we have to add the following option to the "compilerOptions" node in the tsconfig.json file to redirect the compiler output to the wwwroot folder:
"outDir": "../wwwroot/"
Now if you build your project, you notice the app.js, and the app.js.map files are created in the root of the wwwroot folder.
TypeScript Language Basics
- Basic Types
- Interfaces
- Classes
- Namespaces and Modules
- Functions
- Generics
- Common Errors
- Integrating with Build Tools
- Compiler Options
- tsconfig.json
TypeScript Language Advanced
- Mixins
- Declaration Merging
- Type Inference
- Type Compatibility
- JSX
- Writing Definition Files
- Typings for NPM packages
News
TypeScript Contributors
- Contributing to TypeScript
- TypeScript Design Goals
- Coding Guidelines
- Spec conformance testing
- Useful Links for TypeScript Issue Management
- Writing Good Design Proposals
- Compiler Internals
Building Tools for TypeScript
- Architectural Overview
- Using the Compiler API
- Using the Language Service API
- Dev Mode in Visual Studio
FAQs