50 lines
1.8 KiB
XML
50 lines
1.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net9.0</TargetFramework>
|
|
<RootNamespace>WeebSights</RootNamespace>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<AssemblyName>WeebSights</AssemblyName>
|
|
<AssemblyVersion>1.0.0</AssemblyVersion>
|
|
<FileVersion>1.0.0</FileVersion>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<None Include="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<ModsDirectoryPath>$(SPTPath)user/mods/$(MSBuildProjectName)</ModsDirectoryPath>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyToSPT" AfterTargets="AfterBuild" Condition="'$(SPTPath)' != ''">
|
|
<Message Importance="high" Text="Copying mods to $(ModsDirectoryPath)" />
|
|
<ItemGroup>
|
|
<FilesToCopy Include="$(OutputPath)$(TargetName)$(TargetExt)" />
|
|
<FilesToCopy Include="$(OutputPath)$(TargetName).pdb" />
|
|
</ItemGroup>
|
|
<Copy SourceFiles="@(FilesToCopy)" DestinationFolder="$(ModsDirectoryPath)" ContinueOnError="false" />
|
|
<Message Text="Files copied" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="SPTarkov.Server.Core" Version="4.0.3" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="bundles\**">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
<Content Include="Server.csproj.user" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="bundles.json">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="db\**">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
</Project>
|