@@ -12,9 +12,9 @@ rebuild your project.
1212
1313you can then create a OpenAPI output by running the following command in your root of your function project.
1414
15- ` dotnet ./bin/debug/net7 .0/azfuncopenapi.dll `
15+ ` dotnet ./bin/debug/net10 .0/azfuncopenapi.dll `
1616
17- Make sure you swap out net7 .0 for the version you are using within your project
17+ Make sure you swap out net10 .0 for the version you are using within your project
1818
1919## Options
2020
@@ -24,7 +24,7 @@ Make sure you swap out net7.0 for the version you are using within your project
2424| -o (--output) | specify the output path for swagger definition file |
2525| -a (--apibaseurl) | specify the API base url used within the swagger definition (default localhost) |
2626| -c (--configuration) | Specify the project Configuration. Default is 'Debug |
27- | -t (--target) | Specifty the project target framework. Default is 'net7 .0' |
27+ | -t (--target) | Specifty the project target framework. Default is 'net10 .0' |
2828| -v (--version) | Specify the OpenAPI version. Default is V3 |
2929| -f (--format) | Specify the OpenAPI output format. Value can be either 'json' or 'yaml'. Default is 'json |
3030
@@ -34,7 +34,7 @@ add the following to your csproj. file
3434
3535```
3636 <Target Name="PostBuild" AfterTargets="PostBuildEvent">
37- <Exec ContinueOnError="True" Command="dotnet azfuncopenapi.dll --project ../../../ --output ../../../" WorkingDirectory="$(OutputPath)">
37+ <Exec ContinueOnError="True" Command="dotnet azfuncopenapi.dll --project ../../../ --configuration $(Configuration) --target $(TargetFramework) -- output ../../../" WorkingDirectory="$(OutputPath)">
3838 <Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
3939 </Exec>
4040 <Message Importance="high" Text="$(OutputOfExec)" />
0 commit comments