1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-24 15:15:37 +01:00
GiantsTools/Giants.WebApi.Clients/Giants.WebApi.Clients.csproj

44 lines
1.5 KiB
XML
Raw Normal View History

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>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="NSwag.MSBuild" Version="13.7.0">
<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>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="xcopy /DY &quot;$(TargetPath)&quot; &quot;$(GIANTS_PATH)\$(TargetFileName)*&quot;" />
</Target>
2020-08-10 10:11:42 +02:00
</Project>