-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Configuring MSBuild projects to use NuGet
Note: The install script will remove the default import to the
Microsoft.TypeScript.targets
file; if you have manually edited the import before, you will need to remove it yourself before proceeding. See Removing default imports for more details.
Note: The Nuget package depends on the x86 version of [Visual C++ Redistributable for Visual Studio 2015] (https://www.microsoft.com/en-us/download/details.aspx?id=48145). This is generally already installed on your computer, but you can verify that within Programs and Features.
For major releases (https://www.nuget.org)
-
Right-Click -> Manage NuGet Packages
-
Search for
Microsoft.TypeScript.MSBuild
-
Hit
Install
-
When install is complete, rebuild!
For Nightly drops (https://www.myget.org)
- Add a new Package Source
- Go to
Tools
->Options
->NuGet Package Manager
->Package Sources
- Create a new Source:
- Name:
TypeScript Nightly
- Source:
https://www.myget.org/F/typescript-preview/
- Use the new Package Source
- On Project node Right-Click ->
Manage NuGet Packages
- Search for
Microsoft.TypeScript.MSBuild
- Hit
Install
- When install is complete, rebuild!
-
Right-Click ->
Unload Project
-
Right-Click ->
Edit <project file name>
-
Remove references to
-
Microsoft.TypeScript.Default.props
The import should look something like:
```
-
Microsoft.TypeScript.targets
The import should look something like:
```
News
Debugging TypeScript
- Performance
- Performance-Tracing
- Debugging-Language-Service-in-VS-Code
- Getting-logs-from-TS-Server-in-VS-Code
- JavaScript-Language-Service-in-Visual-Studio
- Providing-Visual-Studio-Repro-Steps
Contributing to TypeScript
- Contributing to TypeScript
- TypeScript Design Goals
- Coding Guidelines
- Useful Links for TypeScript Issue Management
- Writing Good Design Proposals
- Compiler Repo Notes
- Deployment
Building Tools for TypeScript
- Architectural Overview
- Using the Compiler API
- Using the Language Service API
- Standalone Server (tsserver)
- TypeScript MSBuild In Depth
- Debugging Language Service in VS Code
- Writing a Language Service Plugin
- Docker Quickstart
FAQs
The Main Repo