Skip to content

Commit 07d9214

Browse files
committed
Add missing nswag dependecy
1 parent 79f2631 commit 07d9214

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

TrainStation/API.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<ItemGroup>
1313
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1414
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" />
15+
<PackageReference Include="NSwag.MSBuild" Version="14.3.0">
16+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
17+
<PrivateAssets>all</PrivateAssets>
18+
</PackageReference>
1519
<PackageReference Include="Swashbuckle.AspNetCore" Version="8.1.0" />
1620
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="8.1.0" />
1721
<PackageReference Include="Flurl.Http" Version="4.0.2" />
@@ -23,6 +27,6 @@
2327
</ItemGroup>
2428

2529
<Target Name="NSwagGenerate" BeforeTargets="BeforeBuild">
26-
<Exec Command="nswag run $(ProjectDir)client.nswag" />
30+
<Exec Command="$(NSwagExe_Net90) run $(ProjectDir)client.nswag" />
2731
</Target>
2832
</Project>

TrainStation/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ WORKDIR /build
99
COPY TrainStation/ TrainStation/
1010

1111
FROM build AS publish
12-
RUN dotnet publish "TrainStation/API.csproj" -c Release
12+
RUN dotnet publish "TrainStation/API.csproj" -c Release -o /app/publish
1313

1414
FROM base AS final
1515

0 commit comments

Comments
 (0)