aspnetcore/src/Tools/Microsoft.dotnet-openapi
Matt Mitchell d8733c2a55
Build time changes (#22362)
* Build time changes
A few changes for build time
- Don't build tests with SkipTestBuild=true and use that for official
  build legs. This cuts 40%-50% off the msbuild invocations for build.
  The longest build leg drops by about 30 mins.
- Skip logging of some task parameters and their metadata.
  This reduces overall binlog size, which is a major contributor to
  build time.

Unfortunately, this does not mean we can yet turn binlogs back on. This
change can actually increase the overall binlog size due to logging of
more project started arguments. There is another optimization for this
in progress.

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2020-06-03 07:14:38 -07:00
..
src Merge branch 'master' into johluo/migrating-extensions 2020-02-20 16:44:06 -08:00
test Build time changes (#22362) 2020-06-03 07:14:38 -07:00
README.md

README.md

Microsoft.dotnet-openapi

Microsoft.dotnet-openapi is a tool for managing OpenAPI references within your project.

Commands

Add Commands

Add File

Options
Short option Long option Description Example
-p --updateProject The project to operate on. dotnet openapi add file --updateProject .\Ref.csproj .\OpenAPI.json
Arguments
Argument Description Example
source-file The source to create a reference from. Must be an OpenAPI file. dotnet openapi add file .\OpenAPI.json

Add URL

Options
Short option Long option Description Example
-p --updateProject The project to operate on. dotnet openapi add url --updateProject .\Ref.csproj http://contoso.com/openapi.json
-o --output-file Where to place the local copy of the OpenAPI file. dotnet openapi add url https://contoso.com/openapi.json --output-file myclient.json
Arguments
Argument Description Example
source-file The source to create a reference from. Must be a URL. dotnet openapi add url https://contoso.com/openapi.json

Remove

Options
Short option Long option Description Example
-p --updateProject The project to operate on. dotnet openapi remove --updateProject .\Ref.csproj .\OpenAPI.json

Arguments

Argument Description Example
source-file The source to remove the reference to. dotnet openapi remove .\OpenAPI.json

Refresh

Options

Short option Long option Description Example
-p --updateProject The project to operate on. dotnet openapi refresh --updateProject .\Ref.csproj https://contoso.com/openapi.json

Arguments

Argument Description Example
source-file The URL to refresh the reference from. dotnet openapi refresh https://contoso.com/openapi.json