Skip to content

Instantly share code, notes, and snippets.

@htuomola
htuomola / Hubs.tt
Last active May 8, 2016 20:41 — forked from robfe/Hubs.tt
A T4 template for generating TypeScript definition files for SignalR hubs. This fork includes minor corrections for using this in VS 2013, MVC 5 project: * Reference the SignalR 2.0 assembly * VS 2013 likes to put TS definition files into subfolders when downloaded from nuget - assuming that this file is directly under /typings/ * TypeScript 0.9…
<#@ template debug="true" hostspecific="true" language="C#" #>
<#@ output extension=".d.ts" #>
<# /* Update this line to match your version of SignalR */ #>
<#@ assembly name="$(SolutionDir)\packages\Microsoft.AspNet.SignalR.Core.2.0.0\lib\net45\Microsoft.AspNet.SignalR.Core.dll" #>
<# /* Load the current project's DLL to make sure the DefaultHubManager can find things */ #>
<#@ assembly name="$(TargetPath)" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Web" #>
<#@ assembly name="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>
<#@ assembly name="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" #>