Skip to content

Commit

Permalink
should fix #1015
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Aug 27, 2024
1 parent c682b68 commit bc260cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/apps/blazor/infrastructure/Infrastructure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@
<ItemGroup>
<ProjectReference Include="..\shared\Shared.csproj" />
</ItemGroup>

<Target Name="NSwag">
<Exec WorkingDirectory="$(ProjectDir)\Api"
EnvironmentVariables="ASPNETCORE_ENVIRONMENT=Development"
Command="nswag run ./nswag.json /variables:Configuration=$(Configuration)" />
</Target>

</Project>
6 changes: 3 additions & 3 deletions src/apps/blazor/scripts/nswag-regen.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

$currentDirectory = Get-Location
$rootDirectory = git rev-parse --show-toplevel
$hostDirectory = Join-Path -Path $rootDirectory -ChildPath 'src/Host'
$infrastructurePrj = Join-Path -Path $rootDirectory -ChildPath 'src/Client.Infrastructure/Client.Infrastructure.csproj'
$hostDirectory = Join-Path -Path $rootDirectory -ChildPath 'src/apps/blazor/client'
$infrastructurePrj = Join-Path -Path $rootDirectory -ChildPath 'src/apps/blazor/infrastructure/Infrastructure.csproj'

Write-Host "Make sure you have run the FSH.WebApi project. `n"
Write-Host "Make sure you have run the WebAPI project. `n"
Write-Host "Press any key to continue... `n"
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');

Expand Down

0 comments on commit bc260cf

Please sign in to comment.