-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Rename all the service reference things #9559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project> | ||
<PropertyGroup> | ||
<_ApiDescriptionTasksAssemblyTarget | ||
Condition="'$(MSBuildRuntimeType)' == 'Core'">netstandard2.0</_ApiDescriptionTasksAssemblyTarget> | ||
<_ApiDescriptionTasksAssemblyTarget | ||
Condition="'$(MSBuildRuntimeType)' != 'Core'">net461</_ApiDescriptionTasksAssemblyTarget> | ||
<_ApiDescriptionTasksAssemblyPath>$(MSBuildThisFileDirectory)/../tasks/$(_ApiDescriptionTasksAssemblyTarget)/Microsoft.Extensions.ApiDescription.Tasks.dll</_ApiDescriptionTasksAssemblyPath> | ||
<_ApiDescriptionTasksAssemblyTarget /> | ||
</PropertyGroup> | ||
<UsingTask TaskName="GetCurrentItems" AssemblyFile="$(_ApiDescriptionTasksAssemblyPath)" /> | ||
<UsingTask TaskName="GetFileReferenceMetadata" AssemblyFile="$(_ApiDescriptionTasksAssemblyPath)" /> | ||
|
||
<!-- | ||
Settings users may update as they see fit. | ||
--> | ||
<PropertyGroup> | ||
<OpenApiDefaultGeneratorOptions Condition="'$(OpenApiDefaultGeneratorOptions)' == ''"></OpenApiDefaultGeneratorOptions> | ||
|
||
<!-- | ||
If 'true', will generate code for OpenApiReference items during design-time builds. Otherwise, generate code only | ||
for output files that do not yet exist during design-time builds. | ||
--> | ||
<OpenApiGenerateAtDesignTime Condition="'$(OpenApiGenerateAtDesignTime)' == ''">true</OpenApiGenerateAtDesignTime> | ||
|
||
<!-- | ||
$(OpenApiDefaultOutputDirectory) value is interpreted relative to the project folder, unless already an | ||
absolute path. | ||
--> | ||
<OpenApiDefaultOutputDirectory | ||
Condition="'$(OpenApiDefaultOutputDirectory)' == ''">$(BaseIntermediateOutputPath)</OpenApiDefaultOutputDirectory> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI - BaseIntermediateOutputPath might not be fully set when this file is evaluated. Would recommend moving this to a .targets file instead. BaseIntermediateOutputPath isn't defined until Microsoft.NET.DefaultOutputPaths.targets is evaluated, which happens at the end of project evaluation. Props file evaluation happens near the beginning of project eval. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, it's working at the moment. I'll move it if we see issues or if I otherwise must update this PR. |
||
<OpenApiDefaultOutputDirectory>$([MSBuild]::EnsureTrailingSlash('$(OpenApiDefaultOutputDirectory)'))</OpenApiDefaultOutputDirectory> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
Well-known metadata of the code generator item groups. | ||
--> | ||
<ItemDefinitionGroup> | ||
<!-- OpenApiProjectReference items may also include OpenApiReference metadata. --> | ||
<OpenApiProjectReference /> | ||
|
||
<OpenApiReference> | ||
<!-- Name of the class to generate. Defaults to match filename in %(OutputPath). --> | ||
<ClassName /> | ||
<!-- | ||
Code generator to use. Required and must end with "CSharp" or "TypeScript" (the currently-supported target | ||
languages) unless %(OutputPath) is set. Builds will invoke a target named "Generate%(CodeGenerator)" to do | ||
actual code generation. | ||
--> | ||
<CodeGenerator>NSwagCSharp</CodeGenerator> | ||
<!-- Namespace to contain generated class. Default is $(RootNamespace). --> | ||
<Namespace /> | ||
<!-- | ||
Options to pass to the code generator target then (likely) added to a tool's command line. Value is passed | ||
along to the code generator but otherwise unused in this package. | ||
--> | ||
<Options>$(OpenApiDefaultGeneratorOptions)</Options> | ||
<!-- | ||
Path to place generated code. Code generator may interpret path as a filename or directory. Default filename or | ||
folder name is %(Filename)Client.[cs|ts]. Filenames and relative paths (if explicitly set) are combined with | ||
$(OpenApiDefaultOutputDirectory). Final value (depending on $(OpenApiDefaultOutputDirectory)) is likely to be | ||
a path relative to the client project. | ||
--> | ||
<OutputPath /> | ||
</OpenApiReference> | ||
</ItemDefinitionGroup> | ||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They aren't necessary with the new client / server split. The tool will come back in Microsoft.Extensions.ApiDescription.Server