-
Notifications
You must be signed in to change notification settings - Fork 1
/
DiaryScheduler.Presentation.Web.csproj
80 lines (71 loc) · 3.87 KB
/
DiaryScheduler.Presentation.Web.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<UserSecretsId>aspnet-DiaryScheduler.Presentation.Web-B8C027FC-576A-49C1-9D26-A62443E807FE</UserSecretsId>
</PropertyGroup>
<!--
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 Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
<!--
Use npm install or npm ci depending on RestorePackagesWithLockFile value.
Uncomment the following lines if you want to use this feature:
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
-->
<Exec Command="npm ci" Condition="$(RestorePackagesWithLockFile) == 'true'" />
<Exec Command="npm install" Condition="$(RestorePackagesWithLockFile) != '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 Name="NpmRunBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
<Exec Command="npm run build" />
</Target>
<ItemGroup>
<None Remove="Scripts\Components\site-alert.ts" />
<None Remove="Scripts\Components\site-calendar.ts" />
<None Remove="Scripts\Components\site-datetimepicker.ts" />
<None Remove="Scripts\Components\site-loader.ts" />
<None Remove="Scripts\Pages\main.ts" />
<None Remove="Scripts\Pages\scheduler.ts" />
<None Remove="Scripts\Typings\jquery-typings.ts" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac" Version="6.4.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DiaryScheduler.Data\DiaryScheduler.Data.csproj" />
<ProjectReference Include="..\DiaryScheduler.DependencyResolution\DiaryScheduler.DependencyResolution.csproj" />
<ProjectReference Include="..\DiaryScheduler.Presentation.Models\DiaryScheduler.Presentation.Models.csproj" />
<ProjectReference Include="..\DiaryScheduler.ScheduleManagement.Core\DiaryScheduler.ScheduleManagement.Core.csproj" />
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="Scripts\Components\site-alert.ts" />
<TypeScriptCompile Include="Scripts\Components\site-calendar.ts" />
<TypeScriptCompile Include="Scripts\Components\site-datetimepicker.ts" />
<TypeScriptCompile Include="Scripts\Components\site-loader.ts" />
<TypeScriptCompile Include="Scripts\Pages\main.ts" />
<TypeScriptCompile Include="Scripts\Pages\scheduler.ts" />
<TypeScriptCompile Include="Scripts\Typings\jquery-typings.ts" />
</ItemGroup>
<ItemGroup>
<Folder Include="Content\" />
</ItemGroup>
</Project>