Updated Configuring MSBuild projects to use NuGet (markdown)
Родитель
845c0b1ba0
Коммит
440f83d706
|
@ -1,3 +1,6 @@
|
|||
> **Note**: The install script will remove the default import to `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](#removing-default-imports) for more details.
|
||||
|
||||
|
||||
## For major releases (www.nuget.org)
|
||||
|
||||
* Right-Click -> Manage NuGet Packages
|
||||
|
@ -22,4 +25,31 @@
|
|||
* Search for `Microsoft.TypeScript.MSBuild`
|
||||
![Search for NuGet package.](https://raw.githubusercontent.com/wiki/Microsoft/TypeScript/images/searchForMyGetPackage.PNG)
|
||||
* Hit `Install`
|
||||
* When install is complete, rebuild!
|
||||
* When install is complete, rebuild!
|
||||
|
||||
|
||||
## Removing default imports
|
||||
|
||||
* Right-Click -> `Unload Project`
|
||||
* Right-Click -> `Edit <project file name>`
|
||||
* Remove references to
|
||||
|
||||
* `Microsoft.TypeScript.Default.props`
|
||||
|
||||
The import should look something like:
|
||||
|
||||
```XML
|
||||
<Import
|
||||
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props"
|
||||
Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />
|
||||
```
|
||||
|
||||
* `Microsoft.TypeScript.targets`
|
||||
|
||||
The import should look something like:
|
||||
|
||||
```XML
|
||||
<Import
|
||||
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets"
|
||||
Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче