Skip to content

Commit b174e8e

Browse files
committed
fix typo minor
1 parent 0d97f3c commit b174e8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Inv_Backend_NET/Inventory_Backend_NET.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<BackendSpecOutputDir>$(ProjectDir)custom_generated/api_spec/</BackendSpecOutputDir>
1111
<BackendSpecOutputFile>$(BackendSpecOutputDir)swagger.json</BackendSpecOutputFile>
12-
<FronendSpecOutputDir>$(INVENTORY_SYSTEM_FE_API_SPEC_DIR)</FronendSpecOutputDir>
12+
<FrontendSpecOutputDir>$([System.Environment]::GetEnvironmentVariable('INVENTORY_SYSTEM_FE_API_SPEC_DIR'))</FrontendSpecOutputDir>
1313
</PropertyGroup>
1414

1515
<Target Name="ValidateRequiredEnv" BeforeTargets="Build">
@@ -18,7 +18,7 @@
1818
- Linux/macOS: export INVENTORY_SYSTEM_FE_API_SPEC_DIR=/path/to/specs
1919
- PowerShell: $env:INVENTORY_SYSTEM_FE_API_SPEC_DIR='C:\path\to\specs'
2020
- CMD: set INVENTORY_SYSTEM_FE_API_SPEC_DIR=C:\path\to\specs"
21-
Condition="'$(FronendSpecOutputDir)' == ''" />
21+
Condition="'$(FrontendSpecOutputDir)' == ''" />
2222
</Target>
2323

2424
<Target Name="GenerateSwaggerToFeAndBe" AfterTargets="Build">
@@ -28,7 +28,7 @@
2828
Command="dotnet tool run swagger tofile --output $(BackendSpecOutputFile) $(TargetDir)$(AssemblyName).dll v1"
2929
EnvironmentVariables="DOTNET_ROLL_FORWARD=LatestMajor;ASPNETCORE_ENVIRONMENT=OpenAPI-Spec-Gen"/>
3030

31-
<Copy SourceFiles="$(BackendSpecOutputFile)" DestinationFolder="$(FronendSpecOutputDir)"/>
31+
<Copy SourceFiles="$(BackendSpecOutputFile)" DestinationFolder="$(FrontendSpecOutputDir)"/>
3232
</Target>
3333

3434
<ItemGroup>

0 commit comments

Comments
 (0)