22 lines
1.1 KiB
XML
22 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net5.0</TargetFramework>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.1" />
|
|
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.1" PrivateAssets="all" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
<PackageReference Include="NSwag.MSBuild" Version="13.10.9">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="Generate API client" BeforeTargets="BeforeBuild" Inputs="../Api/swagger.json" Outputs="HNApiClient.cs">
|
|
<Exec EnvironmentVariables="ASPNETCORE_ENVIRONMENT=Development" Command="$(NSwagExe_Net50) openapi2csclient /input:../Api/swagger.json /namespace:Client /output:HNApiClient.cs /UseBaseUrl:false" />
|
|
</Target>
|
|
</Project>
|