SignalR and MVC bundle

后端 未结 5 1201
迷失自我
迷失自我 2020-12-15 17:52

I\'m trying to use SignalR with MVC bundle, but having problem finding out how to include the /signalr/hubs script into the bundle. For now I have to insert the path in betw

5条回答
  •  不思量自难忘°
    2020-12-15 18:12

    The default /signalr/hubs script is generated dynamically by the runtime on the first request and then cached.

    You can use hubify.exe (see http://weblogs.asp.net/davidfowler/archive/2012/06/10/signalr-0-5-1-released.aspx for details) to pre-generate the file yourself, so you can add it into the MVC bundle.

提交回复
热议问题