This commit is contained in:
Tommy Parnell
2017-10-18 21:42:15 -04:00
parent d4111a4938
commit 538628c485
31 changed files with 559 additions and 0 deletions

25
Readme.md Normal file
View File

@@ -0,0 +1,25 @@
Messing about with signalr. Just for myself, here are some notes....carry on!
```sh
dotnet new mvc --name SignalRYo --auth None
dotnet add package Microsoft.AspNetCore.SignalR --version 1.0.0-alpha1-final
npm init
npm install --save @aspnet/signalr-client
```
add to csproj
``xml
<Target Name="CopyFiles" BeforeTargets="Publish">
<Exec Command="npm install" />
<ItemGroup>
<NpmFiles Include=".\node_modules\@aspnet\signalr-client\dist\browser\*.js" />
</ItemGroup>
<Copy SourceFiles="@(NpmFiles)" DestinationFolder="wwwroot\js\signalr" />
</Target>
```
Created Chat.cs, added some js to the home page