-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHorseStrap.csproj
More file actions
24 lines (19 loc) · 850 Bytes
/
HorseStrap.csproj
File metadata and controls
24 lines (19 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<HorseRoot></HorseRoot>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<Target Name="NpmInstall" BeforeTargets="Build" Condition=" !Exists('$(HorseRoot)node_modules') ">
<Message Importance="high" Text="Running npm install. You'll be horsing around in no time..." />
<Exec Command="npm install" />
</Target>
<Target Name="BuildCSS" BeforeTargets="Build">
<Exec Command="npm run build-css" ContinueOnError="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
</Target>
</Project>