Skip to content

Commit 32c6ef9

Browse files
authored
Merge pull request #3 from JeroenvdBurg/feature/update-readme
update readme
2 parents 555bb02 + cb4f818 commit 32c6ef9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ rebuild your project.
1212

1313
you 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)" />

samples/Azure.Functions.Sample/Azure.Functions.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<Using Include="System.Threading.ExecutionContext" Alias="ExecutionContext" />
2929
</ItemGroup>
3030
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
31-
<Exec ContinueOnError="True" Command="dotnet azfuncopenapi.dll --project ../../../ --configuration $(Configuration) --output ../../../" WorkingDirectory="$(OutputPath)">
31+
<Exec ContinueOnError="True" Command="dotnet azfuncopenapi.dll --project ../../../ --configuration $(Configuration) --target $(TargetFramework) --output ../../../" WorkingDirectory="$(OutputPath)">
3232
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
3333
</Exec>
3434
<Message Importance="high" Text="$(OutputOfExec)" />

0 commit comments

Comments
 (0)