-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCustomRaidTimes.csproj
More file actions
52 lines (48 loc) · 2.16 KB
/
CustomRaidTimes.csproj
File metadata and controls
52 lines (48 loc) · 2.16 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
44
45
46
47
48
49
50
51
52
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>CustomRaidTimes</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
<Version>2.0.0</Version>
<OutputPath>bin\$(Configuration)\</OutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<GenerateDependencyFile>false</GenerateDependencyFile>
<StaticWebAssetsEnabled>false</StaticWebAssetsEnabled>
<DebugType>none</DebugType>
<!-- Zip packaging properties -->
<ZipOutputPath>$(OutputPath)dist\</ZipOutputPath>
<ModFolder>Refringe-CustomRaidTimes</ModFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="SPTarkov.Common" Version="4.0.0" />
<PackageReference Include="SPTarkov.DI" Version="4.0.0" />
<PackageReference Include="SPTarkov.Server.Core" Version="4.0.0" />
<PackageReference Include="SPTarkov.Reflection" Version="4.0.0" />
<PackageReference Include="SPTarkov.Server.Web" Version="4.0.0" />
</ItemGroup>
<!-- Exclude config.json from build output (packaged separately by PackageZip) -->
<ItemGroup>
<Content Remove="config.json" />
</ItemGroup>
<!-- Package distributable zip after build -->
<Target Name="PackageZip" AfterTargets="Build">
<PropertyGroup>
<StagingPath>$(ZipOutputPath)_zip\SPT\user\mods\$(ModFolder)\</StagingPath>
</PropertyGroup>
<RemoveDir Directories="$(ZipOutputPath)_zip" />
<MakeDir Directories="$(StagingPath)" />
<ItemGroup>
<ModDlls Include="$(OutputPath)CustomRaidTimes.dll" />
</ItemGroup>
<Copy SourceFiles="@(ModDlls)" DestinationFolder="$(StagingPath)" />
<Copy SourceFiles="config.json" DestinationFolder="$(StagingPath)" />
<ItemGroup>
<WebAssets Include="wwwroot\**\*.*" />
</ItemGroup>
<Copy SourceFiles="@(WebAssets)" DestinationFolder="$(StagingPath)wwwroot\%(RecursiveDir)" />
<ZipDirectory SourceDirectory="$(ZipOutputPath)_zip" DestinationFile="$(ZipOutputPath)$(ModFolder).zip" Overwrite="true" />
<RemoveDir Directories="$(ZipOutputPath)_zip" />
</Target>
</Project>