Skip to content

Instantly share code, notes, and snippets.

View D-Bullock's full-sized avatar

D Bullock D-Bullock

  • Inverted Tomato
View GitHub Profile
@D-Bullock
D-Bullock / Hubs.tt
Last active May 25, 2016 21:20 — forked from htuomola/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.1.1…
<#@ 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.2.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" #>