-
Notifications
You must be signed in to change notification settings - Fork 10k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make it clear these properties control code generation - use "OnBuild" for consistency with properties elsewhere in ASP.NET Core - remove "Default" from a comple of property names because commaents are pretty clear - rename a few targets for consistency with the new properties - word "Reference" didn't add much
- Loading branch information
Showing
3 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...ription.Client/src/buildMultiTargeting/Microsoft.Extensions.ApiDescription.Client.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no"?> | ||
<Project> | ||
<Target Name="GenerateOpenApiReferenceCode"> | ||
<Target Name="GenerateOpenApiCode"> | ||
<MSBuild Projects="$(MSBuildProjectFile)" | ||
Targets="GenerateOpenApiReferenceCode" | ||
Targets="GenerateOpenApiCode" | ||
Properties="TargetFramework=$(TargetFrameworks.Split(';')[0])" | ||
RemoveProperties="RuntimeIdentifier" /> | ||
</Target> | ||
|
||
<Target Name="_TieInGenerateOpenApiReferenceCode" | ||
<Target Name="_TieInGenerateOpenApiCode" | ||
BeforeTargets="BeforeCompile" | ||
Condition=" ''$(OpenApiGenerateBeforeCompile)' == 'true' " | ||
DependsOnTargets="GenerateOpenApiReferenceCode" /> | ||
Condition=" ''$(OpenApiGenerateCodeOnBuild)' == 'true' " | ||
DependsOnTargets="GenerateOpenApiCode" /> | ||
</Project> |