73 lines
4 KiB
XML
73 lines
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Library</OutputType>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
|
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
|
<!--
|
|
Version information for an assembly consists of the following four values:
|
|
|
|
Major Version
|
|
Minor Version
|
|
Build Number
|
|
Starting in version 4.2.5, we are no longer including the fourth decimal
|
|
location, which previously held the date and time.
|
|
|
|
Also, be sure to release on github with the exact assembly version tag as below
|
|
so that the update manager works correctly (via the Github releases api and mimic)
|
|
-->
|
|
<Version>4.5.7</Version>
|
|
<AssemblyVersion>4.5.7</AssemblyVersion>
|
|
<FileVersion>4.5.7</FileVersion>
|
|
<AssemblyTitle>TShock for Terraria</AssemblyTitle>
|
|
<Company>Re-Logic, Pryaxis & TShock Contributors</Company>
|
|
<Product>TShockAPI</Product>
|
|
<Copyright>Copyright © Re-Logic, Pryaxis & TShock Contributors 2011-2021</Copyright>
|
|
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="BCrypt.Net-Next" Version="4.0.2" />
|
|
<PackageReference Include="MySql.Data" Version="8.0.27" />
|
|
<PackageReference Include="SQLite" Version="3.13.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\TerrariaServerAPI\TerrariaServerAPI\TerrariaServerAPI.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="HttpServer">
|
|
<HintPath>..\prebuilts\HttpServer.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Mono.Data.Sqlite">
|
|
<HintPath>..\prebuilts\Mono.Data.Sqlite.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Content Include="$(OutputPath)\TerrariaServerAPI.dll" IncludeInPackage="true" Pack="true" PackagePath="lib\$(TargetFramework)" />
|
|
<Content Include="$(OutputPath)\TerrariaServerAPI.xml" IncludeInPackage="true" Pack="true" PackagePath="lib\$(TargetFramework)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(ConfigurationName)'=='Debug'">
|
|
<DebugRuntimes Include="$(OutputPath)\runtimes\**\*.*" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ConfigurationName)'=='Debug'">
|
|
<Copy SourceFiles="$(OutputPath)\TShockAPI.dll" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\TShockAPI.deps.json" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\TShockAPI.pdb" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\TShockAPI.xml" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\Mono.Data.Sqlite.dll" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\HttpServer.dll" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="$(OutputPath)\MySql.Data.dll" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\ServerPlugins" SkipUnchangedFiles="false" />
|
|
<Copy SourceFiles="@(DebugRuntimes)" DestinationFolder="$(SolutionDir)\TerrariaServerAPI\TerrariaServerAPI\bin\$(ConfigurationName)\net5.0\runtimes\%(RecursiveDir)" SkipUnchangedFiles="false" />
|
|
</Target>
|
|
|
|
</Project>
|