TShock/TShockAPI/TShockAPI.csproj
Luke 404520c789 Update submodule for ./bin folder changes
This should move most dlls from the root to a ./bin folder.
2021-11-27 22:49:11 +10:00

71 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net6.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageLicenseExpression>GPL-3.0-or-later</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>Pryaxis &amp; TShock Contributors</Company>
<Product>TShockAPI</Product>
<Copyright>Copyright © Pryaxis &amp; TShock Contributors 2011-2021</Copyright>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<PropertyGroup Condition=" '$(ConfigurationName)' == 'Default' ">
<StartAction>Program</StartAction>
<StartProgram>$(SolutionDir)\TShockAPI\bin\Debug\net6.0\TerrariaServerAPI.dll</StartProgram>
<StartWorkingDirectory>$(SolutionDir)\TShockAPI\bin\Debug\net6.0\</StartWorkingDirectory>
<ExternalConsole>true</ExternalConsole>
</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" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.115.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TerrariaServerAPI\TerrariaServerAPI\TerrariaServerAPI.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="HttpServer">
<HintPath>..\prebuilts\HttpServer.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="MoveToBinFolder" AfterTargets="FinalCleanup;PostBuildEvent;Publish">
<ItemGroup>
<MoveBinariesForDebug Include="$(TargetDir)*" Exclude="$(TargetDir)\TerrariaServer*;$(TargetDir)\TShock*" />
<MoveBinariesForPublish Include="$(PublishDir)*" Exclude="$(PublishDir)\TerrariaServer*;$(PublishDir)\TShock*" />
<TShockDebug Include="$(TargetDir)\TShock*" />
<TShockPublish Include="$(PublishDir)\TShock*" />
</ItemGroup>
<Move SourceFiles="@(MoveBinariesForDebug)" DestinationFolder="$(TargetDir)bin" ContinueOnError="true" />
<Move SourceFiles="@(MoveBinariesForPublish)" DestinationFolder="$(PublishDir)bin" ContinueOnError="true" />
<Copy SourceFiles="@(TShockDebug)" DestinationFolder="$(TargetDir)ServerPlugins" />
<Copy SourceFiles="@(TShockPublish)" DestinationFolder="$(PublishDir)ServerPlugins" />
</Target>
</Project>