Commit Graph

32543 Commits

Author SHA1 Message Date
Doug Bunting 5cd86977ed
Rename client code generation components
- #8523
- main project / package --> `Microsoft.Extensions.ApiDescription.Design`
- tasks assembly and namespace --> `Microsoft.Extensions.ApiDescription.Tasks`
- tool namespace --> `Microsoft.Extensions.ApiDescription.Tool`
- targets --> verbs e.g. `GenerateTypeScriptNSwag` and `GenerateDocumentDefault`
- `@(ServiceProjectReference)` metadata -> align with common MSBuild project properties
  - exception: `$(MSBuildProjectExtensionsPath)`; it's readonly and `%(ProjectExtensionsPath)` is unambiguous
    - use `%(ProjectExtensionsPath)`
  - also add `%(Targets)` metadata and remove unused `%(ProjectRuntimeIdentifier)`
- `@(<ServiceProjectReferenceMetadata)` metadata -> align with MSBuild project properties
  - exceptions: `$(MSBuildProjectDirectory)`, `$(MSBuildProjectExtensionsPath)` and `$(MSBuildProjectName)`
    - readonly properties and names already unambiguous
2018-10-10 14:52:57 -07:00
Doug Bunting d3442f3590
Create a single Microsoft.Extensions.ApiDescription.Client package
- #8428
- add signing-related and PackageVerifier configuration for new package
- remove packaging configuration from dotnet-getdocument project
- adjust `dotnet-getdocument` invocation to its new location
- remove use of nonexistent (ignored) `dotnet-getdocument --no-build` option

Remove `--uri` feature from `dotnet-getdocument`
- reduce dependencies from Microsoft.AspNetCore.TestHost to Microsoft.AspNetCore.Hosting.Abstractions
  - assume web site depends on that
- merge `DownloadFileCore` into `DownloadFile`
- remove other unecessary code e.g. `WrappedException` was never `throw`n

Correct issues in `DownloadFile`
- e.g. dispose of `responseStream`, use `await` more, support FIPS-compliant machines

nits:
- clean up `Project` and the metadata it fetches
- remove unnecessary `.props` and `.targets` files
2018-10-10 14:52:56 -07:00
Doug Bunting 5a58f81d8d
Use Internal.AspNetCore.Sdk as an MSBuild SDK in new projects
- follow-up to 5bddd226a3
2018-10-10 14:52:56 -07:00
Doug Bunting ea80199e53
Fix a few issues with Microsoft.Extensions.ApiDescription.Client targets
- follow-ups to 1646345955 and 9d109f5956
- fix `%(Command)` updates in `DefaultDocumentGenerator` target
  - later references to metadata values set within an item are not up-to-date
- qualify values for `%(SourceProject)`, `%(SourceUri)` and `%(SourceDocument)` when setting that metadata
  - MSBuild can't distinguish unqualified metadata references unless using `<X Update="@(X)">`
- fix `@(CurrentServiceFileReference)` items
  - was a copy 'n paste error in `_ServiceFileReferenceGenerator_Core` target
- remove per-language default namespace values
- do not add TypeScript files to `@(Compile)`; generally enhance final item additions
  - use `$(DefaultLanguageSourceExtension)` to help here
  - exclude generated source files with `%(OutputPath)` that does not match `$(DefaultLanguageSourceExtension)`
  - really support `%(OutputPath)` directories
- stick with current `$(TargetFramework)` when building `...ReferenceGenerator_Inner` targets
  - `%(ProjectTargetFramework)` will not exist for all `@(ServiceFileReference)` items
  - building the current project, not a service project; `%(ProjectTargetFramework)` may not be supported

nits:
- shorten a few more long lines in Microsoft.Extensions.ApiDescription.Client.targets
- reduce logging from that file
- do not include `%(SerializedMetadata)` in `%(SerializedMetadata)`
  - caused extra-long serialization of items that were originally `@(ServiceProjectReference)`s
- add more info to various comments
- always use element syntax for metadata additions
2018-10-10 14:52:55 -07:00
Doug Bunting fb9393febf
Correct metadata additions and add errors about metadata
- related to #8419 and (more generally) #7947
- add errors for missing required metadata
- add errors for duplicate `%(DocumentPath)` and `%(OutputPath)` metadata
- remove `[Required]` for task inputs that may be `null` or empty
- correct `%(DocumentPath)`s generated in `GetProjectReferenceMetadata` task
  - use this task
2018-10-10 14:52:55 -07:00
Doug Bunting 87e304334d
Remove batching requirements placed on code and document generator providers
- #8419
- perform batching and `@(ServiceFileReference)` and `@(Compile)` additions in common code
  - take advantage of new simplicity in `DefaultDocumentGenerator` target
- add metadata serialization / deserialization in support of passing items into `<MSBuild />`
  - also ensure metadata values are escaped before calling `ITaskItem.SetMetadata(...)`
- correct typos in Microsoft.Extensions.ApiDescription.Client.* e.g. in comments and metadata names
- move last remaining `GenerationTasks` file

nits:
- combine `_ServiceProjectReferenceGenerator_Restore` and `_ServiceProjectReferenceGenerator_Build` targets
  - only build web sites projects once
- remove unused `buildMultiTargeting` targets
- remove qualification of metadata listed in an `<ItemDefinitionGroup />`; will always exist
- add / remove a few `Condition`s that were missing / redundant
- move properties users won't normally set to Microsoft.Extensions.ApiDescription.Client.targets
- shorten lines in MSBuild files
2018-10-10 14:52:55 -07:00
Doug Bunting 3f001750ad
Rationalize code sharing between the three code generation projects
- #8417
- just two files needed to be moved&hellip;
2018-10-10 14:52:54 -07:00
Doug Bunting a76ca293ef
Add missing license headers to src files
- #8415
- also correct a typo in Microsoft.AspNetCore.Mvc.Testing files' headers
2018-10-10 14:52:54 -07:00
Doug Bunting d0325ef264
Remove `CodeAnnotations`
- #8416
- turns out this required little on top of dougbu/remove.custom.tool
2018-10-10 14:52:54 -07:00
Doug Bunting 6ffcf3571e
Remove T4 custom tool
- use same generator as most other projects in aspnet repos
  - were not using named arguments to resource methods anyhow
- update resources to use regular (numbered) format parameters
- adjust to new `Resources` namespace; no need for separate `using`
- use `Format...(...)` methods as necessary
2018-10-10 14:52:54 -07:00
Doug Bunting e19c036f11
Fix up MSBuild files
- correct filenames
- remove NSwag-specific files
2018-10-10 14:52:53 -07:00
Doug Bunting 25d0916b49
Use one namespace for the three client code generation projects
- also cleared out most uses of `GetDocument` and `GenerationTasks` in MSBuild and strings
- temporarily fixed up T4 templates, adding Resources.tt (will remove custom generation soon)
2018-10-10 14:52:53 -07:00
Doug Bunting 95b4dc8ca0
Add first cut of Microsoft.Extensions.ApiDescription.Client package / project
- WIP in a number of ways
2018-10-10 14:52:36 -07:00
Hao Kung 5c174a3d7d Fix login.cshtml 2018-10-10 14:49:57 -07:00
Pavel Krymets bfa583a9aa
Guard OnAsyncCompletion from completing request before OnExecuteRequestHandler exits (#1489) 2018-10-10 14:34:55 -07:00
BrennanConroy 2ee351786f
[Java] Add pings and server timeout (#3027) 2018-10-10 13:49:22 -07:00
ASP.NET CI 1fa70901fe Updating submodule(s)
Common => d3cbcd0e83f2dfd406ef14c0629ff9d346af4e29
IISIntegration => ab124fc344

[auto-updated: submodules]
2018-10-10 20:40:22 +00:00
Pavel Krymets ab124fc344
Fix applicationInitialization tests and disconnect handler (#1484) 2018-10-10 12:41:11 -07:00
ASP.NET CI 194af32e5f Updating submodule(s)
SignalR => be4fe6c6f9
Templating => 7d09ec6ccc

[auto-updated: submodules]
2018-10-10 19:36:55 +00:00
Ryan Brandenburg 7d09ec6ccc
Low hanging fruit (#763)
Clean up low hanging fruit
2018-10-10 12:12:11 -07:00
Mikael Mengistu be4fe6c6f9
Wait for handshake response in Java Client(#3068) 2018-10-10 12:03:26 -07:00
ASP.NET CI fd9789c779 Updating submodule(s)
EntityFrameworkCore => 172d5e68db74043d649c070300e3a78757e33da1
IISIntegration => ac7a6b56d4
SignalR => 692185f7d2

[auto-updated: submodules]
2018-10-10 18:25:17 +00:00
Ryan Brandenburg 2c365b8fc5 Explicitly push to a branch 2018-10-10 10:16:53 -07:00
Pavel Krymets ac7a6b56d4
Reenable client disconnect tests (#1485) 2018-10-10 10:00:13 -07:00
Mikael Mengistu 692185f7d2
Upgrade Java client to RTM versioning (#3104) 2018-10-10 09:58:25 -07:00
ASP.NET CI 03f142a96f Updating submodule(s)
SignalR => cd33755bee

[auto-updated: submodules]
2018-10-10 16:45:16 +00:00
BrennanConroy cd33755bee
[Java] Make public API look like RxJava (#3103) 2018-10-10 08:50:41 -07:00
ASP.NET CI 79feb3677f Updating submodule(s)
HttpAbstractions => f6e20a38e2

[auto-updated: submodules]
2018-10-10 15:41:36 +00:00
James Newton-King f6e20a38e2 HostString throws ArgumentNullException for null host (#1045) 2018-10-10 08:27:33 -07:00
ASP.NET CI fa2eccad2f Updating submodule(s)
Mvc => 9daf5ff7a4

[auto-updated: submodules]
2018-10-10 05:49:20 +00:00
James Newton-King 9daf5ff7a4
Fix PageRouteTransformerConvention with custom page routes (#8576) 2018-10-10 18:33:30 +13:00
ASP.NET CI 8fbaccaa9e Updating submodule(s)
EntityFrameworkCore => ea3d7e364116351dbf170b4424cd2d559ae04c75

[auto-updated: submodules]
2018-10-10 00:41:01 +00:00
ASP.NET CI 62d2410ece Updating submodule(s)
Common => 7d8418b3b3957ff902cf70406052e8f1b80b584a
EntityFrameworkCore => 46b802819e0783b02e12e7048c0d6406a6b016a2
IISIntegration => 80a01a751b
Logging => b3d506624b9f20413c7a24f849ca0da76da831d2
SignalR => b63c3816d5

[auto-updated: submodules]
2018-10-09 23:40:05 +00:00
Nate McMaster 80a01a751b Avoid double builds of dependencies in /t:PackageStressTestApp (#1483)
* Upgrade dependencies

* Avoid double builds of dependencies in /t:PackageStressTestApp
2018-10-09 16:20:05 -07:00
Pavel Krymets 7a09638afe
Modernize startup error pages (#1476) 2018-10-09 16:12:01 -07:00
Pavel Krymets f2fbd803b9
Flow request trace context to CreateApplication (#1480) 2018-10-09 16:11:52 -07:00
Ryan Brandenburg 3cf20afc8a Fix syntax error 2018-10-09 15:42:46 -07:00
Ryan Nowak 904c9d3623 Use Moq v4.10 2018-10-09 15:09:26 -07:00
BrennanConroy 85ecc5ba4c
Add Redis 2.0 (#1459) 2018-10-09 14:50:50 -07:00
Mikael Mengistu b63c3816d5
Remove HttpConnectionOptions (#3101) 2018-10-09 14:28:46 -07:00
Ryan Nowak 0a1c60e2d3 Update Moq to 4.11.0
This is the latest version of Moq, should have a fix for
https://github.com/aspnet/Home/issues/3569
2018-10-09 13:41:21 -07:00
Nate McMaster 8e13235732
Remove the Proxy submodule (#1471)
Part of https://github.com/aspnet/AspNetCore/issues/3598 - unifying and reducing repos. Proxy does not ship, so its code will move to aspnet/AspLabs.
2018-10-09 13:16:03 -07:00
Ryan Brandenburg f65c1a4e3d Push UpdateRepos to maestro branch 2018-10-09 12:40:10 -07:00
Ryan Brandenburg 2948972bfb Revert "Update repos send PRs"
This reverts commit 1593966f3b.
2018-10-09 12:40:10 -07:00
ASP.NET CI e4f0d050a8 Updating submodule(s)
Diagnostics => 1f31e0556d
Hosting => 27e4e1aca3
IISIntegration => 23db53eae6
KestrelHttpServer => 8bca6b3877
MetaPackages => f13f262bad
Mvc => 6cee2431f1
Routing => 7b16053f27
SignalR => f87d8b4aaf

[auto-updated: submodules]
2018-10-09 19:06:36 +00:00
Nate McMaster eaad1eb3aa
Remove tasks for analyzing the repo graph (#1469)
As a part of converging repos, we no longer need this code. It is currently buggy and slow, and we can get away without by hard-coding the repo graph (which rarely changes)
2018-10-09 12:01:41 -07:00
N. Taylor Mullen 18b61e9217 Revert "Update Roslyn version."
This reverts commit 70f2d3abd9.
2018-10-09 11:53:37 -07:00
dotnet-maestro-bot 3cd98acda3 Updating external dependencies (#1464) 2018-10-09 11:33:03 -07:00
Pavel Krymets f13f262bad
Remove ANCM reference from test site (#281) 2018-10-09 11:05:11 -07:00
N. Taylor Mullen 70f2d3abd9 Update Roslyn version.
aspnet/Razor#2634
2018-10-09 11:04:04 -07:00