|
19 | 19 | Options added to the code generator command line by default. Provides the default %(Options) metadata of
|
20 | 20 | @(OpenApiReference) and @(OpenApiProjectReference) items.
|
21 | 21 | -->
|
22 |
| - <OpenApiDefaultGeneratorOptions Condition="'$(OpenApiDefaultGeneratorOptions)' == ''"></OpenApiDefaultGeneratorOptions> |
| 22 | + <OpenApiGenerateCodeOptions Condition="'$(OpenApiGenerateCodeOptions)' == ''"></OpenApiGenerateCodeOptions> |
23 | 23 |
|
24 | 24 | <!--
|
25 | 25 | If 'true' (the default), generate code for @(OpenApiReference) and @(OpenApiProjectReference) items before the
|
26 | 26 | BeforeCompile target.
|
27 | 27 |
|
28 |
| - If 'false', the GenerateOpenApiReferenceCode target is not part of the build (by default) but can run when |
29 |
| - explicitly referenced. That is, the target may be invoked from the command line or tied in through another target. |
| 28 | + If 'false', the 'GenerateOpenApiCode' target is not part of the build (by default) but can run when explicitly |
| 29 | + referenced. That is, the target may be invoked from the command line or tied in through another target. |
30 | 30 | -->
|
31 |
| - <OpenApiGenerateBeforeCompile Condition="'$(OpenApiGenerateBeforeCompile)' == ''">true</OpenApiGenerateBeforeCompile> |
| 31 | + <OpenApiGenerateCodeOnBuild Condition="'$(OpenApiGenerateCodeOnBuild)' == ''">true</OpenApiGenerateCodeOnBuild> |
32 | 32 |
|
33 | 33 | <!--
|
34 | 34 | If 'true' (the default), generate code for @(OpenApiReference) and @(OpenApiProjectReference) items during
|
35 | 35 | design-time builds. Otherwise, generate code only during a full build.
|
36 | 36 | -->
|
37 |
| - <OpenApiGenerateAtDesignTime Condition="'$(OpenApiGenerateAtDesignTime)' == ''">true</OpenApiGenerateAtDesignTime> |
| 37 | + <OpenApiGenerateCodeAtDesignTime |
| 38 | + Condition="'$(OpenApiGenerateCodeAtDesignTime)' == ''">true</OpenApiGenerateCodeAtDesignTime> |
38 | 39 |
|
39 | 40 | <!--
|
40 | 41 | If 'true' (the default), build projects referenced in @(OpenApiProjectReference) items before retrieving that
|
|
44 | 45 | If 'false', ensure the referenced projects build before this one in the solution or through other means. IDEs may
|
45 | 46 | be confused about the project dependency graph in this case.
|
46 | 47 | -->
|
47 |
| - <OpenApiBuildReferencedProjects Condition="'$(OpenApiBuildReferencedProjects)' == ''">true</OpenApiBuildReferencedProjects> |
| 48 | + <OpenApiBuildReferencedProjects |
| 49 | + Condition="'$(OpenApiBuildReferencedProjects)' == ''">true</OpenApiBuildReferencedProjects> |
48 | 50 |
|
49 | 51 | <!--
|
50 | 52 | Default folder to place code generated from Open API documents. Value is interpreted relative to the project
|
51 | 53 | folder, unless already an absolute path. Part of the default %(OutputPath) metadata of @(OpenApiReference) and
|
52 | 54 | @(OpenApiProjectReference) items.
|
53 | 55 | -->
|
54 |
| - <OpenApiDefaultOutputDirectory |
55 |
| - Condition="'$(OpenApiDefaultOutputDirectory)' == ''">$(BaseIntermediateOutputPath)</OpenApiDefaultOutputDirectory> |
| 56 | + <OpenApiCodeDirectory |
| 57 | + Condition="'$(OpenApiCodeDirectory)' == ''">$(BaseIntermediateOutputPath)</OpenApiCodeDirectory> |
56 | 58 | </PropertyGroup>
|
57 | 59 |
|
58 | 60 | <!--
|
|
65 | 67 | <OpenApiReference>
|
66 | 68 | <!-- Name of the class to generate. Defaults to match filename in %(OutputPath). -->
|
67 | 69 | <ClassName />
|
| 70 | + |
68 | 71 | <!--
|
69 | 72 | Code generator to use. Required and must end with "CSharp" or "TypeScript" (the currently-supported target
|
70 | 73 | languages) unless %(OutputPath) is set. Builds will invoke a target named "Generate%(CodeGenerator)" to do
|
71 | 74 | actual code generation.
|
72 | 75 | -->
|
73 | 76 | <CodeGenerator>NSwagCSharp</CodeGenerator>
|
| 77 | + |
74 | 78 | <!-- Namespace to contain generated class. Default is $(RootNamespace). -->
|
75 | 79 | <Namespace />
|
| 80 | + |
76 | 81 | <!--
|
77 | 82 | Options to pass to the code generator target then (likely) added to a tool's command line. Value is passed
|
78 | 83 | along to the code generator but otherwise unused in this package.
|
79 | 84 | -->
|
80 |
| - <Options>$(OpenApiDefaultGeneratorOptions)</Options> |
| 85 | + <Options>$(OpenApiGenerateCodeOptions)</Options> |
| 86 | + |
81 | 87 | <!--
|
82 | 88 | Path to place generated code. Code generator may interpret path as a filename or directory. Default filename or
|
83 | 89 | folder name is %(Filename)Client.[cs|ts]. Filenames and relative paths (if explicitly set) are combined with
|
84 |
| - $(OpenApiDefaultOutputDirectory). Final value (depending on $(OpenApiDefaultOutputDirectory)) is likely to be |
85 |
| - a path relative to the client project. |
| 90 | + $(OpenApiCodeDirectory). Final value (depending on $(OpenApiCodeDirectory)) is likely to be a path relative to |
| 91 | + the client project. |
86 | 92 | -->
|
87 | 93 | <OutputPath />
|
88 | 94 | </OpenApiReference>
|
|
0 commit comments