File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" >
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" >
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 >
You can’t perform that action at this time.
0 commit comments