Commit Graph

44812 Commits

Author SHA1 Message Date
N. Taylor Mullen d9f35d4482 Add support for C# 8 nullable forgiveness operator.
- Added a feature flag to ensure this functionality does not impact pre-3.0 applications. This change is in fact a breaking change because some less-common scenarios will no longer be valid. For instance, `@Name!.Hello`used to treat the `!.Hello` as markup, now it will be treated as part of the expression.ExpressionChunkGenerator
- Updated parser flags tests
- Updated parser tests
- Updated the C# 8.0 integration tests to include the new nullable forgiveness scenarios.

aspnet/AspNetCoredotnet/aspnetcore-tooling#11188
\n\nCommit migrated from 625c605607
2019-07-02 10:17:18 -07:00
Javier Calvarro Nelson 9ac7cb8f00 Unconditionally enable content in RCLs (dotnet/aspnetcore-tooling#723)
\n\nCommit migrated from 50f6b2d4d6
2019-07-02 18:35:03 +02:00
Isaac Levin 5f5ba7a592
Merge branch 'master' into 5431-work 2019-07-02 10:24:18 -04:00
Isaac Levin e0ba612fe4 fix merge conficts 2019-07-02 10:18:29 -04:00
Javier Calvarro Nelson 5e4f1f5fb2 Adds an opt-in default timeout for async JS calls (dotnet/extensions#1880)
* Adds the ability to configure a default timeout for JavaScript interop calls.
* Adds the ability to pass in a cancellation token to InvokeAsync that will be used instead of the default timeout.
  * A default cancellation token can be passed to signal no cancellation, but it is not recommended in remote interop scenarios.\n\nCommit migrated from e04faac7e4
2019-07-02 13:24:29 +02:00
Javier Calvarro Nelson 244ed54764 Allow sanitization of dotnet interop exceptions (dotnet/extensions#1879)
Adds the ability to sanitize exceptions during JS to .NET interop calls by overriding OnDotNetInvocationException method and returning an object to be returned to JavaScript that describes the exception.\n\nCommit migrated from d7eab7c083
2019-07-02 12:40:50 +02:00
dotnet-maestro[bot] a269ff0181 Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190701.14 (#11781)
- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19351.14
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19351.14
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19351.14
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19351.14
2019-07-01 20:33:32 -07:00
Ryan Nowak bfbb9a78a2 Fix a bug with ref and declaration phase
This fixes a regression in the new `@ref` support, where the build will
fail during the declaration pass.

The problem is that the EliminateMethodBodyPass runs really early and
wipes out the usage of `@ref` before we have a chance to see it. The
solution is to make it run really late. This makes sense because we
basically just use this pass to do cleanup.
\n\nCommit migrated from 09b50151ef
2019-07-01 17:26:14 -07:00
Ryan Nowak 8a7508d818 Move Blazor HttpClient functionality out of sfx
Fixes: #11756 #10505

See description in #11756
2019-07-01 17:14:38 -07:00
dotnet-maestro[bot] 9f8f5fe95d
[master] Update dependencies from aspnet/Blazor aspnet/EntityFrameworkCore (#11759)
* Update dependencies from https://github.com/aspnet/Blazor build 20190701.2

- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview8.19351.2

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190701.3

- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview8.19351.3
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview8.19351.3
- dotnet-ef - 3.0.0-preview8.19351.3
- Microsoft.EntityFrameworkCore - 3.0.0-preview8.19351.3
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview8.19351.3
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview8.19351.3
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview8.19351.3

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190701.2

- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview8.19351.2
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview8.19351.2
- dotnet-ef - 3.0.0-preview8.19351.2
- Microsoft.EntityFrameworkCore - 3.0.0-preview8.19351.2
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview8.19351.2
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview8.19351.2
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview8.19351.2
2019-07-01 22:46:32 +00:00
Ryan Nowak 291ad25f5d Rename .Components.Browser -> Components.Web
This is part of API review for Blazor. We're renaming these projects to
reflect the fact that they are for Blazor using web technologies (html
+css).

The old naming of .Browser of whether it meant client-side (in the
browser).
2019-07-01 15:36:35 -07:00
Ryan Nowak dbf5b80f97 PR feedback
\n\nCommit migrated from bfc2485b67
2019-07-01 15:29:08 -07:00
Ryan Nowak e9ac371854 General cleanup of bind code
Removed support for more obsolete cases and cleaned up some out-of-date
comments.
\n\nCommit migrated from 19c6a6fa4b
2019-07-01 15:29:08 -07:00
Ryan Nowak 8d6e13082d Remove handling of pre-directive-attribute cases
\n\nCommit migrated from 2e34a6ace6
2019-07-01 15:29:08 -07:00
Ryan Nowak e1f53b4bd6 Add code generation support for culture
Adds the code generation support for culture + bind.

Some additonal changes are needed for the compiler support for bind, we
need to pass the culture into the code that unwraps the value as well.

There's no need to eagerly push these changes into the runtime (can wait
for the compiler change to go in) because nothing in our runtime tests
use the new feature.
\n\nCommit migrated from 6aad9748e8
2019-07-01 15:29:08 -07:00
Ryan Nowak 04d7e63b79 Add culture parameter to element-bind tag helpers
\n\nCommit migrated from 7515e2ce49
2019-07-01 15:29:08 -07:00
Ryan Nowak 66cb243807 Add codegen for default format
\n\nCommit migrated from e5be8d4673
2019-07-01 15:29:08 -07:00
Ryan Nowak 3c84c57c61 Add the ability to specify invariant and format
Adds the ability to specify that an `<input type="..." />` for some
specific value of `type` maps to the invariant culture and/or provides
a default format.

The primary examples of usage would be the number field which wants to
use invariant culture, or datetime which wants to use invariant culture
and a format string.
\n\nCommit migrated from 60f2d563a6
2019-07-01 15:29:08 -07:00
Pranav K 5af960536c
Remove LangVersion from Blazor server side (#11620) 2019-07-01 15:23:54 -07:00
Ryan Brandenburg 8a81e3a25f
String content emoji (#11386)
Test fix of high-ascii encoding.
2019-07-01 15:00:32 -07:00
Ryan Brandenburg 7d7a3c9c81
Update SPA template versions (#11350)
Update vulnerable versions
2019-07-01 14:57:34 -07:00
Ryan Brandenburg 038768137f
Accessibility for ReactRedux (#11571)
Accessibility for ReactRedux
2019-07-01 14:52:14 -07:00
Ryan Nowak 8d41acba67 Add support for passing CultureInfo to binders
This change allows the binding infrastructure to accept a CultureInfo
everywhere we create a binder. The next step will be to add support to
the binding directive attribute to pass a culture.
2019-07-01 14:32:59 -07:00
Ryan Brandenburg b2023bbbf1
Merge pull request #11630 from cjaliaga/template-blank-lines
[Addresses #11619] Remove blank lines in Configure Services for Razor and Mvc
2019-07-01 14:30:29 -07:00
Ryan Nowak 2c6e1dacac Use ref-assembly code in shim
Updates our Components shim to use the ref assembly code. This is just
cleanup and will help us keep up-to-date with API review changes since
we can just copy-past the files.

I made two modifications to make this simple.
- Removed our built-in components
- Removed the HTTP stuff

This makes it easier for us to maintain the shim. You can see cases
where I had to update tests because they diverged from what the real
APIs look like (no product bugs).

I'd still like to improve this workflow so suggestions wanted xD
\n\nCommit migrated from 8517be2bac
2019-07-01 14:22:26 -07:00
Dylan Dmitri Gray 854bab207f
RequestQueue namespace cleanup (#11695)
* namespace cleanup
2019-07-01 14:20:50 -07:00
Ryan Nowak 1c126ab773 Get rid of pubternal in routing
The only pubternal that remains is DfaGraphWriter - it's a good use case
for pubternal because it's something we want to expose, but we'd never
service and would willingly break the API in the future. It's also
really unlikly that anyone would build on top of it.
2019-07-01 14:11:13 -07:00
Ryan Nowak 895ad896c7 Fix: dotnet/aspnetcore-tooling#11197 automatic backing-field for @ref (dotnet/aspnetcore-tooling#707)
This change makes @ref define a field for you by default. We didn't do
this originally because we weren't sure if the compiler generating a
field would always be what you want, and more importantly,
we didn't have the expressiveness to add an opt-out.

Now that we have directive attributes, it's easy to create an opt-out
for the field generation. The special thing about it is that where
you opt-out has to be static. For this reason the @bind:suppressField
attribute cannot be used with a value, you either have the flag or not.

Additionally, we don't support automatic field generation for
generics, because usually we can't write the field name. If we
want to in the future could make this work when the generic
type arguments are specified. So in the case of generics,
you have to opt-out, and you will get a diagnostic
that tells you so.\n\nCommit migrated from dadf9faf22
2019-07-01 13:58:25 -07:00
John Luo c96f179898
Marking flaky tests (#11758) 2019-07-01 13:33:18 -07:00
Doug Bunting 7344c1ea8a Update branding to preview 8
- aspnet/AspNetCore-Internal#2722
2019-07-01 12:06:38 -07:00
dotnet-maestro[bot] 33cbea3922
Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190701.1 (#11755)
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19351.1
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19351.1
- dotnet-ef - 3.0.0-preview7.19351.1
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19351.1
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19351.1
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19351.1
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19351.1
2019-07-01 18:53:19 +00:00
Steve Sanderson 9e3f0b79f6 Fix Blazor VSIX (#11748)
* Fix build for Blazor VSIX (previously, output contained no templates)

* Add @dougbu's suggested condition
2019-07-01 11:23:42 -07:00
Isaac Levin 5f50e28bca
Merge branch 'master' into 5431-work 2019-07-01 14:02:35 -04:00
dotnet-maestro[bot] a2a9dce0b3
[master] Update dependencies from aspnet/AspNetCore-Tooling (#11747)
* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190701.1

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19351.1
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19351.1
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19351.1
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19351.1

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190701.2

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19351.2
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19351.2
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19351.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19351.2
2019-07-01 17:15:22 +00:00
Isaac Levin ff1065070c
merge from master (#9)
merge from master

Co-authored-by: Nick Darvey <nickdarvey@outlook.com.au>
Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
Co-authored-by: Ryan Nowak <nowakra@gmail.com>
Co-authored-by: Justin Kotalik <jkotalik12@gmail.com>
Co-authored-by: Kristian Hellang <kristian@hellang.com>
Co-authored-by: Ajay Bhargav Baaskaran <ajaybhargavb@gmail.com>
Co-authored-by: null <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Hao Kung <HaoK@users.noreply.github.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
Co-authored-by: Thomas Levesque <thomaslevesque@users.noreply.github.com>
Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>
Co-authored-by: Mikael Mengistu <mikaelm12@users.noreply.github.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Brennan <brecon@microsoft.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Andrew Stanton-Nurse <andrew@stanton-nurse.com>
Co-authored-by: Jacques Eloff <joeloff@users.noreply.github.com>
Co-authored-by: John Luo <johluo@microsoft.com>
Co-authored-by: huysentruitw <wouter_huysentruit@hotmail.com>
Co-authored-by: Ben Adams <thundercat@illyriad.co.uk>
Co-authored-by: Dylan Dmitri Gray <d.dylan.g@gmail.com>
Co-authored-by: Nate McMaster <natemcmaster@users.noreply.github.com>
Co-authored-by: dotnet-maestro <@dotnet-maestro>
Co-authored-by: Daniel Roth <daroth@microsoft.com>
2019-07-01 13:05:10 -04:00
Brennan 70b478136a
Improved for loop for faster negotiate response (#11732) 2019-07-01 09:11:00 -07:00
dotnet-maestro[bot] 8057775f58
[master] Update dependencies from aspnet/EntityFrameworkCore aspnet/Blazor (#11733)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190630.4

- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19330.4
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19330.4
- dotnet-ef - 3.0.0-preview7.19330.4
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19330.4
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19330.4
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19330.4
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19330.4

* Update dependencies from https://github.com/aspnet/Blazor build 20190701.1

- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview7.19351.1
2019-07-01 13:56:33 +00:00
Javier Calvarro Nelson 635da5b73a
[Templating] Enforce selenium tests runs on the expected platforms (#11602)
* Will cause the CI environment to fail if the E2E tests stop running by accident.
2019-07-01 14:42:11 +02:00
Steve Sanderson 60a8f2348e Add usings to Razor Components template. Fixes #11687 2019-07-01 11:24:11 +01:00
David Fowler d3640d59a2
Add a diagnostic source event that fires when a route is matched (#11685)
* Add a diagnostic source event that fires when a route is matched
- Usually more information becomes available about a request once route is matched. This event shoud allow diagnositc systems to enlighten the typical "begin request" metadata to include more information about the matched route and more importantly the selected endpoint and associated metadata.

* Update src/Http/Routing/test/UnitTests/EndpointRoutingMiddlewareTest.cs

Co-Authored-By: campersau <buchholz.bastian@googlemail.com>

* PR feedback and test fixes
2019-07-01 00:13:37 -07:00
dotnet-maestro[bot] 661fdedfd4 [master] Update dependencies from aspnet/EntityFrameworkCore (#11729)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190630.3
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19330.3
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19330.3
- dotnet-ef - 3.0.0-preview7.19330.3
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19330.3
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19330.3
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19330.3
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19330.3
2019-06-30 21:29:50 -07:00
dotnet-maestro[bot] 9f18444518
Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190630.1 (#11728)
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19330.1
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19330.1
- dotnet-ef - 3.0.0-preview7.19330.1
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19330.1
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19330.1
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19330.1
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19330.1
2019-06-30 23:15:58 +00:00
Daniel Roth 3aeb582f75 Update Blazor survey link for 3.0.0-preview7 (#11705) 2019-06-30 08:26:07 -07:00
Daniel Roth d6d12507dc Remove package guids from client-side Blazor templates (#11707) 2019-06-30 08:24:51 -07:00
Hao Kung 6dc65b1673
[Helix] run on arm queues (#11422) 2019-06-30 01:04:53 -07:00
dotnet-maestro 2f2d1e6e3d Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190629.2
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19329.2
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19329.2
- dotnet-ef - 3.0.0-preview7.19329.2
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19329.2
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19329.2
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19329.2
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19329.2
2019-06-29 17:05:56 -07:00
Isaac Levin 49a5ca979b fix merge 2019-06-29 19:24:30 -04:00
Isaac Levin 9e28412a7a updates 2019-06-29 19:21:30 -04:00
dotnet-maestro[bot] 3b4ca06bbc [master] Update dependencies from aspnet/EntityFrameworkCore (#11704)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190629.1
- Microsoft.EntityFrameworkCore.Tools - 3.0.0-preview7.19329.1
- Microsoft.EntityFrameworkCore.SqlServer - 3.0.0-preview7.19329.1
- dotnet-ef - 3.0.0-preview7.19329.1
- Microsoft.EntityFrameworkCore - 3.0.0-preview7.19329.1
- Microsoft.EntityFrameworkCore.InMemory - 3.0.0-preview7.19329.1
- Microsoft.EntityFrameworkCore.Relational - 3.0.0-preview7.19329.1
- Microsoft.EntityFrameworkCore.Sqlite - 3.0.0-preview7.19329.1

Dependency coherency updates
- Microsoft.AspNetCore.Analyzer.Testing - 3.0.0-preview7.19328.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview7.19328.2 (parent: Microsoft.EntityFrameworkCore)
&hellip;
2019-06-29 14:01:37 -07:00
John Luo ef19361731
Ensure builds have unique package GUIDs (#11703) 2019-06-28 21:47:44 -07:00