41 lines
2.2 KiB
XML
41 lines
2.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<Import Project="..\..\build\common.props" />
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>netcoreapp1.1;net46</TargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.SignalR\Microsoft.AspNetCore.SignalR.csproj" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" />
|
|
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="$(AspNetCoreVersion)" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="NpmInstall">
|
|
<Exec Command="npm install" />
|
|
</Target>
|
|
|
|
<Target Name="CopyJasmine" BeforeTargets="BeforeBuild" DependsOnTargets="NpmInstall">
|
|
<ItemGroup>
|
|
<JasmineFiles Include="../../node_modules/jasmine-core/lib/jasmine-core/*.js" />
|
|
<JasmineFiles Include="../../node_modules/jasmine-core/lib/jasmine-core/*.css" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(JasmineFiles)" DestinationFolder="$(MSBuildProjectDirectory)/wwwroot/lib/jasmine" />
|
|
</Target>
|
|
|
|
<Target Name="BuildTSClient" BeforeTargets="BeforeBuild" DependsOnTargets="NpmInstall">
|
|
<PropertyGroup>
|
|
<SignalRClientDistPath>..\..\dist\browser\signalr-client.js</SignalRClientDistPath>
|
|
<SignalRClientTargetFolder>$(MSBuildProjectDirectory)/wwwroot/lib/signalr-client/</SignalRClientTargetFolder>
|
|
<SignalRClientTargetPath>$(MSBuildProjectDirectory)/wwwroot/lib/signalr-client/signalr-client.js</SignalRClientTargetPath>
|
|
</PropertyGroup>
|
|
<Copy Condition="Exists('$(SignalRClientDistPath)')" SourceFiles="$(SignalRClientDistPath)" DestinationFolder="$(SignalRClientTargetFolder)"/>
|
|
<Exec Condition="!Exists('$(SignalRClientDistPath)')" Command="npm run gulp -- --gulpfile $(MSBuildProjectDirectory)/../../src/Microsoft.AspNetCore.SignalR.Client.TS/gulpfile.js bundle-client --bundleOutDir $(SignalRClientTargetFolder)" />
|
|
</Target>
|
|
|
|
</Project>
|