mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-26 23:53:09 +01:00
45 lines
1.6 KiB
XML
45 lines
1.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net472</TargetFramework>
|
|
<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>
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
<PackageReference Include="NSwag.MSBuild" Version="13.16.1">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="System.ComponentModel.DataAnnotations" />
|
|
<Reference Include="System.Net.Http" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="NSwag" AfterTargets="Build">
|
|
<Copy SourceFiles="@(ReferencePath)" DestinationFolder="$(OutDir)References" />
|
|
<Exec Command="$(NSwagExe) run nswag.nswag /variables:Configuration=$(Configuration),OutDir=$(OutDir)" />
|
|
<RemoveDir Directories="$(OutDir)References" />
|
|
</Target>
|
|
|
|
<Target Name="PostBuild" AfterTargets="Build">
|
|
<Copy Condition="$(CopyToImageOutputPath) == 'true'" SourceFiles="$(TargetPath)" DestinationFolder="$(GameImagePath)" SkipUnchangedFiles="true" />
|
|
<CallTarget Condition="$(GIANTS_PATH) != ''" Targets="CopyTargetToGameFolder" />
|
|
</Target>
|
|
|
|
</Project>
|