forked from MrCMS/MrCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MrCMS.Web.Admin.csproj
57 lines (47 loc) · 2.75 KB
/
MrCMS.Web.Admin.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<Project Sdk="Microsoft.NET.Sdk.Razor">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
<StaticWebAssetBasePath Condition="$(StaticWebAssetBasePath) == ''">/</StaticWebAssetBasePath>
<Configurations>Debug;Release;Debug-Skip-JS</Configurations>
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug-Skip-JS' ">
<DebugSymbols Condition=" '$(DebugSymbols)' == '' ">true</DebugSymbols>
<Optimize Condition=" '$(Optimize)' == '' ">false</Optimize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ClosedXML" Version="0.95.4" />
<PackageReference Include="Lindhart.Analyser.MissingAwaitWarning" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.1.0" />
<PackageReference Include="MiniProfiler.AspNetCore.Mvc" Version="4.2.22" />
<PackageReference Include="X.PagedList.Mvc.Core" Version="8.4.0" />
</ItemGroup>
<ItemGroup>
<!-- <ProjectReference Include="..\..\Apps\MrCMS.Web.Apps.Core\MrCMS.Web.Apps.Core.csproj" />-->
<ProjectReference Include="..\..\Lib\MrCMS\MrCMS.csproj" />
<ProjectReference Include="..\MrCMS.Web.Admin.Infrastructure\MrCMS.Web.Admin.Infrastructure.csproj" />
</ItemGroup>
<!--
1. Install npm packages
"Inputs" and "Outputs" are used for incremental builds. If all output items are up-to-date, MSBuild skips the target.
The first time the task is executed. Then, it only runs when you change the package.json file.
Documentation: https://docs.microsoft.com/en-us/visualstudio/msbuild/incremental-builds?WT.mc_id=DT-MVP-5003978
-->
<Target Condition="'$(Configuration)' != 'Debug-Skip-JS'" Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
<PropertyGroup>
<RestoreNpmPackagesWithLockFile>true</RestoreNpmPackagesWithLockFile>
</PropertyGroup>
<Exec Command="npm ci" Condition="$(RestoreNpmPackagesWithLockFile) == 'true'" />
<Exec Command="npm install" Condition="$(RestoreNpmPackagesWithLockFile) != 'true'" />
<!-- Write the stamp file, so incremental builds work -->
<Touch Files="node_modules/.install-stamp" AlwaysCreate="true" />
</Target>
<!--
2. Run npm run build before building the .NET project.
MSBuild runs NpmInstall before this task because of the DependsOnTargets attribute.
-->
<Target Condition="'$(Configuration)' != 'Debug-Skip-JS'" Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
<Exec Command="npm run build" />
</Target>
</Project>