2020-08-10 10:11:42 +02:00
|
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2020-08-11 08:38:26 +02:00
|
|
|
|
<TargetFramework>net472</TargetFramework>
|
2020-08-10 10:11:42 +02:00
|
|
|
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Remove="swagger.json" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Content Include="swagger.json">
|
|
|
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
|
|
|
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
|
|
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
|
|
|
</Content>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2022-09-05 23:45:33 +02:00
|
|
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
|
|
|
<PackageReference Include="NSwag.MSBuild" Version="13.16.1">
|
2020-08-10 10:11:42 +02:00
|
|
|
|
<PrivateAssets>all</PrivateAssets>
|
|
|
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
|
|
|
</PackageReference>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2020-08-11 08:38:26 +02:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Reference Include="System.ComponentModel.DataAnnotations" />
|
|
|
|
|
<Reference Include="System.Net.Http" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
2020-08-10 10:11:42 +02:00
|
|
|
|
<Target Name="NSwag" AfterTargets="Build">
|
|
|
|
|
<Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(OutDir)References" />
|
2020-08-11 08:38:26 +02:00
|
|
|
|
<Exec Command="$(NSwagExe) run nswag.nswag /variables:Configuration=$(Configuration),OutDir=$(OutDir)" />
|
2020-08-10 10:11:42 +02:00
|
|
|
|
<RemoveDir Directories="$(OutDir)References" />
|
|
|
|
|
</Target>
|
|
|
|
|
|
2022-08-28 08:27:26 +02:00
|
|
|
|
<Target Name="PostBuild" AfterTargets="Build">
|
2022-09-06 01:18:08 +02:00
|
|
|
|
<Copy Condition="$(GameImagePath) != ''" SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
|
2022-09-06 01:58:24 +02:00
|
|
|
|
<Copy Condition="$(GameImagePath) != ''" SourceFiles="@(_SourceItemsToCopyToOutputDirectory)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
|
2022-08-28 09:18:32 +02:00
|
|
|
|
<CallTarget Condition="$(GIANTS_PATH) != ''" Targets="CopyTargetToGameFolder" />
|
2020-08-11 10:55:57 +02:00
|
|
|
|
</Target>
|
2022-08-28 09:18:32 +02:00
|
|
|
|
|
2020-08-10 10:11:42 +02:00
|
|
|
|
</Project>
|