d14e7cc155
Co-authored-by: Alex <clodanSPT@hotmail.com> Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
63 lines
3.7 KiB
XML
63 lines
3.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<Import Project="..\..\Build.props" />
|
|
<PropertyGroup>
|
|
<PackageId>SPTarkov.Server.Core</PackageId>
|
|
<Authors>Single Player Tarkov</Authors>
|
|
<Description>Core library for the Single Player Tarkov server.</Description>
|
|
<Copyright>Copyright (c) Single Player Tarkov 2025</Copyright>
|
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
|
<PackageProjectUrl>https://sp-tarkov.com</PackageProjectUrl>
|
|
<RepositoryUrl>https://github.com/sp-tarkov/server-csharp</RepositoryUrl>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<OutputType>Library</OutputType>
|
|
<IsPackable>true</IsPackable>
|
|
<StaticWebAssetsEnabled>false</StaticWebAssetsEnabled>
|
|
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\SPTarkov.Common\SPTarkov.Common.csproj" />
|
|
<ProjectReference Include="..\SPTarkov.DI\SPTarkov.DI.csproj" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="System.IO.Hashing" Version="9.0.8" />
|
|
<PackageReference Include="FastCloner" Version="3.3.10" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="..\..\LICENSE" Pack="true" Visible="false" PackagePath="" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="UnitTests" />
|
|
</ItemGroup>
|
|
<Target Name="AfterEverythingDone" AfterTargets="PostBuildEvent">
|
|
<!-- Run virtualizer patch -->
|
|
<Exec
|
|
ConsoleToMsBuild="true"
|
|
Condition="'$(IsPublish)' == 'true'"
|
|
Command="dotnet build -c "$(Configuration)" "$(MSBuildProjectDirectory)/../../Patches/Ceciler.Virtualizer/Ceciler.Virtualizer.csproj""
|
|
/>
|
|
<Exec
|
|
ConsoleToMsBuild="true"
|
|
Command="dotnet "$(MSBuildProjectDirectory)/../../Ceciler/Ceciler.Launcher.dll" "$(OutDir)SPTarkov.Server.Core.dll" "$(MSBuildProjectDirectory)/../../Patches/Ceciler.Virtualizer/bin/$(Configuration)/$(TargetFramework)/Ceciler.Virtualizer.dll""
|
|
/>
|
|
<!-- Run ExtensionData patch -->
|
|
<Exec
|
|
ConsoleToMsBuild="true"
|
|
Condition="'$(IsPublish)' == 'true'"
|
|
Command="dotnet build -c "$(Configuration)" "$(MSBuildProjectDirectory)/../../Patches/Ceciler.JsonExtensionData/Ceciler.JsonExtensionData.csproj""
|
|
/>
|
|
<Exec
|
|
ConsoleToMsBuild="true"
|
|
Command="dotnet "$(MSBuildProjectDirectory)/../../Ceciler/Ceciler.Launcher.dll" "$(OutDir)SPTarkov.Server.Core.dll" "$(MSBuildProjectDirectory)/../../Patches/Ceciler.JsonExtensionData/bin/$(Configuration)/$(TargetFramework)/Ceciler.JsonExtensionData.dll""
|
|
/>
|
|
</Target>
|
|
<!-- Generates the ProgramStatics class with the build information -->
|
|
<Target Name="GenerateProgramStatics" BeforeTargets="CollectPackageReferences;CoreCompile">
|
|
<WriteLinesToFile
|
|
File="Utils/ProgramStatics.Generated.cs"
|
|
Lines="// <auto-generated />
// This file is automatically generated. Do not modify manually.
// Any changes made to this file will be overwritten during the build process.

using SPTarkov.Server.Core.Models.Enums%3B

using Version = SemanticVersioning.Version%3B

namespace SPTarkov.Server.Core.Utils%3B

public static partial class ProgramStatics
{
 private static Version SptVersion { get%3B } = new("$(SptVersion)")%3B
 private static string Commit { get%3B } = "$(SptCommit)"%3B
 private static double BuildTime { get%3B } = $(SptBuildTime)%3B
 private static EntryType BuildType { get%3B } = EntryType.$(SptBuildType)%3B
}
"
|
|
Overwrite="true"
|
|
/>
|
|
</Target>
|
|
</Project>
|