-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathInfiniFrameExample.WebApp.Vue.csproj
More file actions
43 lines (38 loc) · 1.75 KB
/
Copy pathInfiniFrameExample.WebApp.Vue.csproj
File metadata and controls
43 lines (38 loc) · 1.75 KB
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
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<LangVersion>14.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ApplicationIcon>../../../assets/favicon.ico</ApplicationIcon>
<FrontendDirectory>$(MSBuildProjectDirectory)/Source/InfiniFrame.Vue</FrontendDirectory>
<FrontendLockFile>$(FrontendDirectory)/package-lock.json</FrontendLockFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../../../src/InfiniFrame.WebServer/InfiniFrame.WebServer.csproj" />
<ProjectReference Include="../../../src/InfiniFrame/InfiniFrame.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="wwwroot/**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="Source/" />
</ItemGroup>
<Target Name="BuildFrontend" BeforeTargets="Build">
<Message Text="Installing npm packages" Importance="high" />
<Exec Condition="Exists('$(FrontendLockFile)')"
Command="npm ci --include=dev"
WorkingDirectory="$(FrontendDirectory)" />
<Exec Condition="!Exists('$(FrontendLockFile)')"
Command="npm install --include=dev"
WorkingDirectory="$(FrontendDirectory)" />
<Message Text="Building frontend with npm..." Importance="high" />
<Exec Command="npm run vue.build" WorkingDirectory="$(FrontendDirectory)" />
</Target>
<Import Project="../../../InfiniFrame.NativeCopy.targets" />
</Project>