Skip to content

Configuring MSBuild projects to use NuGet

Mohamed Hegazy edited this page Jan 28, 2016 · 15 revisions

For existing projects:

  • Right-Click -> Unload Project
  • Edit project file
  • Remove references to existing targets and prop files:
<Import 
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props"
Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.Default.props')" />

and

<Import 
Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets"
Condition="Exists('$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.targets')" />
  • Reload Project

  • Right-Click -> Manage NuGet Packages

  • Search for Microsoft.TypeScript.MSBuild Search for NuGet package.

  • Hit Install

Clone this wiki locally