Commit Graph

120 Commits

Author SHA1 Message Date
John Luo 58447bee31
Remove gRPC template workarounds (#10026) 2019-05-07 13:57:15 -07:00
Ryan Brandenburg 8fd86c38db
Make some tests Flaky (#9935)
Mark some tests flaky.
2019-05-06 15:33:02 -07:00
Howard Richards 77424a6b06 Amend server-side blazor template WeatherForecast TemperatureF to use formula - fixes #9955 (#9981) 2019-05-05 06:19:41 -07:00
Ryan Brandenburg 86f92cc020
Retry external templating links (#9871) 2019-05-02 14:45:28 -07:00
John Luo ea5e9556d5
Set namespace of gRPC template (#9907) 2019-05-02 12:59:02 -07:00
Mikael Mengistu 4cb86bc151
Mark flaky Angular test (#9926) 2019-05-02 10:28:11 -07:00
Nate McMaster ae8e96f154
Remove API check baselines and related project settings (#9846) 2019-04-30 14:58:13 -07:00
Neil Bostrom d9ad99933c Fixed issue with SPA templates generating invalid NPM package names (#9725)
Added unit test to check NPM package names matches regex
2019-04-29 14:42:25 -07:00
Ryan Brandenburg 1f7b5855f7
Check browser console errors (#9298)
Check browser console errors
2019-04-25 10:02:22 -07:00
Steve Gordon b033883728 Updating ConfigureServices overload (#9711)
Using the overload where the HostBuilderContext is available to support common usage scenarios such as accessing the environment and configuration whilst registering services.
2019-04-25 09:30:33 -07:00
Javier Calvarro Nelson 4f330271b8
[Templating][Fixes #9503] Multiple small fixes (#9691)
* Disable react service worker when used alongside auth.
* Add logout detection.
* Update authorize route when authentication state changes.
2019-04-25 17:50:47 +02:00
James Newton-King 0831456fac
Change gRPC template logging level to info in development (#9538) 2019-04-20 12:53:04 +12:00
Artak Mkrtchyan cab7ca6694 Changed the order of some templates to be explicit 2019-04-18 23:07:51 -07:00
Ryan Brandenburg dac6756853
Default IdentityUI to Bootstrap4 (#9334) 2019-04-18 10:22:57 -07:00
Artak Mkrtchyan 6a7b94a2bd Updated order of projects in the new project dialog 2019-04-18 10:14:26 -07:00
Pranav K 004ac25983
Remove AddRazorSupportForMvc from MVC and Blazor projects (#9446)
Fixes https://github.com/aspnet/AspNetCore/issues/9126
Fixes https://github.com/aspnet/AspNetCore/issues/9183
Fixes https://github.com/aspnet/AspNetCore/issues/9207
2019-04-16 20:46:51 -07:00
Javier Calvarro Nelson 8897b56597
[Templating] Fixes an error in the react redux template when opened in VS (#9292) 2019-04-12 09:17:16 +02:00
Ryan Brandenburg 59770d6589
Merge pull request #8870 from adrianwright109/footer-height
Remove explicit footer height
2019-04-09 09:28:42 -07:00
Ryan Brandenburg 3e1b1ac4e0
Component item template (#9077) 2019-04-08 10:41:44 -07:00
Javier Calvarro Nelson 4abf766c3c
Update Identity server dependency for preview4 (#9104)
* Updates Identity server dependency for preview4
* Infrastructure improvements.
* Updates react versions.
* Updates migrations.
* Makes templates show up in Visual Studio
2019-04-08 17:06:58 +02:00
John Luo 67e08728ca
Remove client from gRPC templates (#9078) 2019-04-07 22:42:38 -07:00
Ryan Brandenburg 6b93e2ee71 Fix up naming of templates 2019-04-07 08:52:22 -07:00
Pranav K fb037bda01
Set CSharpLangVersion during runtime compilation (#9135)
* Set CSharpLangVersion during runtime compilation

* Pass CSharpLangVersion inferred by the CSharpCompiler to RazorEngine
* Set GenerateRazorHostingAssemblyInfo in Razor.RuntimeCompilation
targets
* Unskip failing test

Fixes https://github.com/aspnet/AspNetCore/issues/8996
2019-04-05 21:24:50 -07:00
Pranav K d1eeb55139 Specify AddRazorSupportForMvc in Blazor templates
VS 16.1 tooling does not support RazorConfigurations with no extensions
Working around this by treating Blazor templates as using MVC configuration
until we can resolve the issue in tooling

Workaround for https://github.com/aspnet/AspNetCore/issues/9119
2019-04-05 17:21:29 -07:00
Steve Sanderson 728110ec9e Update template-baselines.json 2019-04-05 17:00:52 -07:00
Steve Sanderson 09944bc0a6 Put favicon.ico back for Blazor Server-Side template. Fixes #9096 2019-04-05 17:00:52 -07:00
Doug Bunting 1b50085835
Chain coherent dependencies up through Extensions to EF Core packages (#8877)
* Chain coherent dependencies up through Extensions to EF Core packages
- should reduce incoherent PRs we get from `darc`
- react to AspNetCore-Tooling breaking changes
  - use C# Preview version in Blazor integration tests
    - update `EnsureOptions_ConfiguresDefaultParseOptions` test to match new C# version default
  - react to new newline encoding behavior; thanx @ajaybhargavb!
  - update product code and tests to use new GetItem API; thanx @NTaylorMullen!
    - RazorProjectFileSystem breaking change
    - update ref assemblies
- react to EF Core breaking changes
  - react to EF Core method rename
  - react to aspnet/EntityFrameworkCore@ccfc5edbc7
  - react to aspnet/EntityFrameworkCore@6cb41531df breaking change
    - disable new analyzer in `ScratchDatabaseFixture`
- skip `MvcTemplate_NoAuthImplAsync(...)` test for F#
  - #8996
- exclude some runtime assemblies from crossgen; thanx @BrennanConroy!
- add direct references to Mvc in AzureAD samples
  - unclear why the reference is no longer pulled in transitively

* Run `darc` to grab the latest
- CoreFx packages with version 4.6.0-preview4.19204.1 to ensure coherency
- core-setup packages with version 3.0.0-preview4-27604-05 to ensure coherency
- Extensions packages with verisn 3.0.0-preview4.19204.2 to ensure coherency
- EntityFrameworkCore packages with version 3.0.0-preview4.19204.7 from build 20190404.7
- AspNetCore-Tooling packages with version 3.0.0-preview4.19204.2 from build 20190404.2
2019-04-05 10:54:04 -07:00
Javier Calvarro Nelson 437134f1da
[Infrastructure] Standarize E2E test asserts and increase wait time (#9080)
* Standarize E2E test asserts and increase wait time
2019-04-05 09:00:11 +02:00
Ryan Brandenburg 23c88a14bf Fix template baseline (#9094) 2019-04-05 07:06:16 +02:00
Artak 1c3f890240 Fixing comment grammer
Addresses https://github.com/aspnet/AspNetCore/issues/9053
2019-04-04 20:49:14 -07:00
Pranav K 5b56dcb700
Add RazorLangVersion to Blazor templates (#9081)
* Add RazorLangVersion to templates
* Cleanup extra line in project template
2019-04-04 17:58:08 -07:00
Justin Kotalik 6266d56165 disable flaky test (#9091) 2019-04-04 15:55:12 -07:00
Pranav K 44b9b520c3
Cleanup extra line in project template 2019-04-04 14:44:50 -07:00
Javier Calvarro Nelson b9e600a45c
Renames for blazor server-side, inclusion in shared framework, and other renaming fixes (#9001)
* Move contents of Microsoft.AspNetCore.Components.Services namespace to Microsoft.AspNetCore.Components
* Rename Components to Blazor
* Make Blazor server-side part of the shared framework.
2019-04-04 21:36:36 +02:00
Ryan Brandenburg fefffd7751
Test all links in templates (#8628)
Improve templating tests
2019-04-04 11:31:24 -07:00
Artak facb0018eb Added the submodules initialization step 2019-04-04 10:36:14 -07:00
Artak Mkrtchyan d27ce10629 Added back the important usings 2019-04-04 10:04:06 -07:00
Artak 6be7bea82d Update Startup.cs 2019-04-04 10:04:06 -07:00
Artak b8dd263c90 Added missing usings 2019-04-04 10:04:06 -07:00
Artak ef46c364fd Adding `using Microsoft.Extensions.Configuration` 2019-04-04 10:04:06 -07:00
Artak Mkrtchyan 8c287bc7e5 Remove unused `using`-s from Program and Startup classes 2019-04-04 10:04:06 -07:00
Ryan Brandenburg 96d282319d
Remove extra newline (#9051) 2019-04-04 09:57:27 -07:00
Steve Sanderson 3657a429eb
Server-side Blazor template cleanups for Preview 4 (#9025)
* Rename Host.cshtml to _Host.cshtml

* In Startup.cs, specify root component and selector explicitly so you can easily disable prerendering if desired

* Remove unneccesary dependency on NewtonsoftJson package

* Remove unnecessary MapRazorPages and make blank lines consistent

* Rename "Services" subdirectory to "Data"

* Remove favicon.ico (no longer needed since we switched to MapFallbackToPage

* Revert MapComponentHub change due to reasons
2019-04-03 17:00:20 +01:00
Pranav K 42a2dd5b3e
AddRazorSupportForMvc in RCL (#8995) 2019-04-02 11:13:40 -07:00
Javier Calvarro Nelson 8499a27c7f
[Components] Relayer + Robust reconnect (#8911)
* [MVC][Components] Prerendering + Robust reconnect
* Relayers prerendering support on a separate package on top of MVC and
  components.
* Implements robust reconects with acknowledgements from the client.
* Improves interactive prerendering with the ability to reconnect to
  prerendered components.
* Removes the need to register components statically when prerendering
  them.
* Removes the need of using an element selector when prerendering an
  interactive component.
* Updates the templates to use the new fallback routing pattern and
  reenables the components test.
* Adds eslint to the Typescript project to help maintain a consistent
  style.
* Adds logging to support better debugging based on the pattern used by
  signalr.
* Fixes exception handling on the server to always report exceptions correctly to the client.
2019-04-02 19:17:03 +02:00
Artak Mkrtchyan 77e6be4c28 Fixing the build for ProjectTemplates 2019-04-01 15:49:21 -07:00
Ryan Nowak 284e968101 Add AddControllers and AddRazorPages
These are *new style* for configuring MVC in services. We're adding these to make
things feel a bit more tailored to those particular scenarios.

----

The main reason for this is that we've had repeated community asks for an
*API-optimized* way of configuring MVC. I don't think that using AddMvcCore
is a suitable building block, because it has too many options that you want.

I've think I've identified the reasonable set of features that should be part
of the default experience for APIs. All of these things are already pay-for-play
and are activated by the presence of attributes. The only additional cost is
loading of assemblies and a few additional inspections of the attributes
(cached).

----

Additionally the AddControllers experience is composible. You can add views
to it, or add pages and get the whole thing.

AddRazorPages is basically an alias for what AddMvc does today. We don't
currently have a way to add pages without controllers (the opposite is true).
Based on feedback we could specialize this more.

----

Branding and perception are important, and we've users ask for more flexibility
in what gets added. The plan is to update the templates to use this experience
in preview4, and see what kind of feedback we get.
2019-03-29 18:51:10 -07:00
Ryan Nowak 658b37d2bd
Make UseEndpoints a thing (#8765)
* Make endpoint middleware explicit

This change makes the endpoint middleware explicit again, and updates
all of the templates.

The other change here is make UseEndpoints be the place where you
register endpoints. This is vital because it puts your code visually at
the point of the pipeline where it executes.

Lastly, I removed support for UseMvc with endpoint routing. This is
causing issues for some security features, and we're moving in the
direction of trying to make the middleware heavy implementation required
in 3.0. There are some issues we won't be able to fix in MVC if we can't
unambiguously know if UseMvc was used or the middleware.
2019-03-28 15:41:11 -07:00
Adrian Wright 768e2f8208 Remove explicit footer height 2019-03-27 21:51:22 +00:00
Ryan Brandenburg 8955a32ce9
MapController in RazorPages (#8685)
MapController in RazorPages
2019-03-27 10:49:33 -07:00