Commit Graph

179 Commits

Author SHA1 Message Date
Ajay Bhargav Baaskaran db66452bbd Fix bug in bind lowering logic
\n\nCommit migrated from 5bcd008779
2019-05-22 14:06:32 -07:00
Ryan Nowak 95bb698c5a Make duplicate attribute names an error (dotnet/aspnetcore-tooling#604)
This came up in the context of discussion around aspnet/AspNetCoredotnet/aspnetcore-tooling#5071.

Browsers use a 'first attribute wins' rule for evaluating attributes and
building the DOM - though duplicate attributes are considered to be a
spec violation.

Blazor wants to use 'last attribute wins' rules because that's most
sensible when you consider evaluation order and splatting.

This means that we have to have the markup block pass do the same thing
as the Blazor runtime when duplicates appear. However, since this is a
spec violation I'm proposing that we just make it an error (like we do
for malformed tags). There's no useful purpose for duplicate attributes
since browsers ignore it.

Since we're not going to allow this for elements. Let's go all of the
way and block it for components as well. And while we're here, lets
block some of the invalid cases where users try to mix onchange and
bind. These don't work today, so we should make them an error. If we
decide to add support for this case to the runtime that would require
compiler work anyway.
\n\nCommit migrated from 0c59ca5f74
2019-05-21 16:37:08 -07:00
Ajay Bhargav Baaskaran 72d017cc1b Added support for @attribute directive (dotnet/aspnetcore-tooling#607)
\n\nCommit migrated from 67b8a838da
2019-05-21 15:42:56 -07:00
Ajay Bhargav Baaskaran 5bad5de7ee Directive attributes part 1: Support parameters in bound attributes (dotnet/aspnetcore-tooling#597)
* Directive attributes part 1: Support parameters in bound attributes

* update

* Fix test

* feedback

* Updated design

* Do case sensitive comparison

* more

* Bug fix
\n\nCommit migrated from 9bbf240948
2019-05-21 13:07:23 -07:00
Javier Calvarro Nelson 13397dd4d6 Initial support for static assets in Razor Class Libraries (dotnet/aspnetcore-tooling#580)
* Imports static assets from packages containing custom msbuild
  targets defining a StaticWebAsset item group.
* Generates an embeds a manifest into the application assembly
  that contains a list of paths to the content roots of the
  assets defined in the packages custom msbuild targets.\n\nCommit migrated from 8e70013b70
2019-05-21 15:03:00 +02:00
Javier Calvarro Nelson 111e26dd03 Conditionally enable content items in the razor SDK (dotnet/aspnetcore-tooling#589)
* Move the globs from the project system into the Razor SDK on a separate file that can be imported by itself.
* Import the file conditionally based on the EnableRazorContent property\n\nCommit migrated from 62e33dac1d
2019-05-20 21:06:38 +02:00
Alex Lorimer 98a2a4348b fixed destructive property assignment (reference self correctly using `$(GetCopyToOutputDirectoryItemsDependsOn)` instead of `$(GetCopyToOutputDirectoryItems)`) (dotnet/aspnetcore-tooling#603)
The intention here would have been to add to the existing GetCopyToOutputDirectoryItemsDependsOn property, defined in Microsoft.Common.Targets. Instead what was happening is that it was being completely overwitten with the _RazorGetCopyToOutputDirectoryItems entry, given that $(GetCopyToOutputDirectoryItems) doesn't exist as a property and must have been a typo (it exists as a task, not a property).

An effect of this bug was that the `AssignTargetPaths` target is not always executed before the `GetCopyToOutputDirectoryItems` target, which should explicitly depend on it. `AssignTargetPaths` is responsible for populating the `ContentWithTargetPath` itemgroup. Left empty, it appears to `GetCopyToOutputDirectoryItems` task that there are no Content files to copy to the final output directory, when in fact there are.\n\nCommit migrated from 4597bc3d55
2019-05-20 06:39:51 -07:00
Pranav K b5a7daba2b Do build time discovery of MVC ApplicationParts (dotnet/aspnetcore-tooling#598)
* Do build time discovery of MVC ApplicationParts
\n\nCommit migrated from e79d5600f7
2019-05-17 13:14:41 -07:00
N. Taylor Mullen 96475e488d Render more TagHelper code at design time.
- This is a pre-requisite to properly warnings users about TagHelpers in code blocks. With this change VS indicates that there's an asynchronous operation happening in a code block but because the code is auto-generated it happens behind the scenes and therefore always gets logged as a line 1 error (unusable). Therefore, to fix this issue there will be a partner PR that will go out in AspNetCore that adds analyzer errors for cases where `__tagHelperRunner.RunAsync` exists in code blocks that do not return `Task` and are not marked with `async` properly.
- Updated test files to reflect the new TagHelper codegen at design time.
- Note: This doesn't solve the `~/` case that will be in a follow up PR.

aspnet/AspNetCoredotnet/aspnetcore-tooling#8630
\n\nCommit migrated from 17af3efccd
2019-05-17 12:59:32 -07:00
N. Taylor Mullen ffd11eaa05 Add support for single line control flow statements in code blocks.
- This adds support for C# single line variations of: `if`, `for`, `foreach`, `do`, `while`, `lock` and `using`.
- Turns out the existing parser had 99% of the support for these scenarios already. Therefore, in this change set I went ahead and added exhaustive tests to verify things worked end-to-end.
- Added a restriction to single line markup to not allow markup in single line control flow statements. Updated resx to provide a better error message for cases when users do use markup in single line control flow statements.

dotnet/aspnetcore-tooling#9637
\n\nCommit migrated from cf474c97aa
2019-05-08 14:20:08 -07:00
N. Taylor Mullen b9fde956ea Fix RazorDiagnostics from being hidden and unordered.
- Diagnostics were not being raised to the `RazorSyntaxTree` and weren't being ordered on final output. This resulted in some of our tests missing the fact that certain cases were generating errors.
- Made all three phases of Razor parsing order their diagnostics.
- Added `GetAllDiagnostics` methods to `SyntaxNode`s to be more consistent with IR documents.
- Updated test files. In some cases new errors were found because we're now lifting them to the `SyntaxTree`, in most others the errors are re-ordered.

**Note: In end-to-end scenarios diagnostics were not hidden, only unordered. The IR phase would find nested/hidden documents and lift them to the IR/C# documents.**
\n\nCommit migrated from ef31a9683b
2019-05-08 09:22:42 -07:00
N. Taylor Mullen d388f38f1f Merge remote-tracking branch 'origin/release/vs16.1-preview4'
# Conflicts:
#	src/Razor/src/Microsoft.AspNetCore.Razor.Language/Extensions/FunctionsDirectivePass.cs
#	src/Razor/test/RazorLanguage.Test/Extensions/FunctionsDirectivePassTest.cs
\n\nCommit migrated from de4b0c7854
2019-05-03 14:05:35 -07:00
Ajay Bhargav Baaskaran fede538838 Port fixes from master (dotnet/aspnetcore-tooling#562)
* Fix invalid cast in non-generic parameterized ChildContent

* Fix crash in functions block
\n\nCommit migrated from 0acc18b236
2019-05-03 14:02:13 -07:00
Pranav K 997ab19511 Unskip Build_WithViews_ProducesDepsFileWithCompilationContext_ButNoReferences (dotnet/aspnetcore-tooling#560)
\n\nCommit migrated from e5a23e0588
2019-05-03 12:15:27 -07:00
Nate McMaster 4a4b80046d Enable resx source generation (dotnet/aspnetcore-tooling#561)
\n\nCommit migrated from 627710fcb8
2019-05-03 12:04:53 -07:00
Ajay Bhargav Baaskaran 9a456a5aeb Fix crash in functions block (dotnet/aspnetcore-tooling#550)
\n\nCommit migrated from 3fe99e9d7f
2019-05-02 13:40:25 -07:00
Ajay Bhargav Baaskaran c21572bf8f Merge pull request dotnet/aspnetcore-tooling#526 from aspnet/ajbaaska/generic-int-fix
Fix invalid cast in non-generic parameterized ChildContent\n\nCommit migrated from e622d7c405
2019-05-01 17:18:31 -07:00
Ajay Bhargav Baaskaran 9860cfc34b do the needful
\n\nCommit migrated from c5a7e9ecce
2019-05-01 14:53:26 -07:00
Ajay Bhargav Baaskaran 67855582bb Update comment
\n\nCommit migrated from f78e4c258e
2019-05-01 14:41:35 -07:00
Ajay Bhargav Baaskaran 2050916767 Add @code directive support for Blazor
\n\nCommit migrated from 7dc5887b49
2019-04-30 21:05:23 -07:00
Ajay Bhargav Baaskaran 3c5903095a Fix invalid cast in non-generic parameterized ChildContent
\n\nCommit migrated from 5ca26a352e
2019-04-30 20:32:16 -07:00
Ajay Bhargav Baaskaran 5f462346c6 Added support for @namespace directive in Blazor (dotnet/aspnetcore-tooling#504)
* Added support for @namespace directive in Blazor
\n\nCommit migrated from 7f6c1422dd
2019-04-30 17:58:13 -07:00
Steve Sanderson ed04f3ebb8 'key' directive attribute for components (dotnet/aspnetcore-tooling#508)
\n\nCommit migrated from 0803d3bbed
2019-04-29 16:16:05 +01:00
Ryan Nowak 9deb4401e4 Fix dotnet/aspnetcore-tooling#5709
Enables the correct processing of data- attributes for components.
\n\nCommit migrated from 7ae8a8c842
2019-04-25 08:27:43 -07:00
Ajay Bhargav Baaskaran 43824a4c12 Verify line pragmas on generated code (dotnet/aspnetcore-tooling#392)
* Verify line pragmas on generated code
\n\nCommit migrated from ca33b2d51b
2019-04-22 14:43:13 -07:00
Ajay Bhargav Baaskaran 956606ee5d Fix TypeInference code gen for non-generic parameter (dotnet/aspnetcore-tooling#433)
\n\nCommit migrated from 4233bc593c
2019-04-19 10:06:13 -07:00
dotnet-maestro[bot] dd5dac97e5 [master] Update dependencies from aspnet/Extensions (dotnet/aspnetcore-tooling#409)
* Update dependencies from https://github.com/aspnet/Extensions build 20190410.2

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19210.2
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19210.2
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.Logging - 3.0.0-preview5.19210.2

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)

* Try a coherent SDK and Runtime

* Try again

* Fix codecheck

* Update dependencies from https://github.com/aspnet/Extensions build 20190410.2

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19210.2
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19210.2
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.Logging - 3.0.0-preview5.19210.2

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)

* Try again

* Update dependencies from https://github.com/aspnet/Extensions build 20190410.2

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19210.2
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19210.2
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19210.2
- Microsoft.Extensions.Logging - 3.0.0-preview5.19210.2

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19208.5 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27608-16 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/aspnet/Extensions build 20190412.9

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19212.9
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19212.9
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19212.9
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19212.9
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19212.9
- Microsoft.Extensions.Logging - 3.0.0-preview5.19212.9

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19211.22 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27611-18 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19211.22 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27611-18 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27611-18 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19211.22 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27611-18 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/aspnet/Extensions build 20190413.4

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19213.4
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19213.4
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19213.4
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19213.4
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19213.4
- Microsoft.Extensions.Logging - 3.0.0-preview5.19213.4

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-02 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-02 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27613-02 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-02 (parent: Microsoft.Extensions.Logging)

* Update dependencies from https://github.com/aspnet/Extensions build 20190414.1

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19214.1
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19214.1
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19214.1
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19214.1
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19214.1
- Microsoft.Extensions.Logging - 3.0.0-preview5.19214.1

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-11 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-11 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27613-11 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19212.14 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27613-11 (parent: Microsoft.Extensions.Logging)

* Restore with the appropriate RuntimeFrameworkVersion before building or publishing

* Fix incremental test

* Update dependencies from https://github.com/aspnet/Extensions build 20190416.8

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-preview5.19216.8
- Microsoft.AspNetCore.Testing - 3.0.0-preview5.19216.8
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-preview5.19216.8
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-preview5.19216.8
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-preview5.19216.8
- Microsoft.Extensions.Logging - 3.0.0-preview5.19216.8

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0-preview5.19215.16 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27616-01 (parent: Microsoft.Extensions.Logging)
- System.Text.Encodings.Web - 4.6.0-preview5.19215.16 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27616-01 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.0.0-preview5-27616-01 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0-preview5.19215.16 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.App - 3.0.0-preview5-27616-01 (parent: Microsoft.Extensions.Logging)
\n\nCommit migrated from f9c222d305
2019-04-17 16:16:34 +00:00
Pranav K 2309e56de8 Do not split warning message across multiple lines (dotnet/aspnetcore-tooling#432)
The newline in the warning messages causes the warning message to appear as two separate warnings in the build output:

Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004: One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly
Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004:  compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374.

This change fixes the warning message to appear as a single warning:

Microsoft.NET.Sdk.Razor\build\netstandard2.0\Sdk.Razor.CurrentVersion.targets(805,5): warning RAZORSDK1004: One or more Razor view or page files were found, but the project is not configured to add Razor support for MVC. The MSBuild property 'AddRazorSupportForMvc' must be set to correctly compile Razor files that target MVC. For more information, see https://go.microsoft.com/fwlink/?linkid=868374.\n\nCommit migrated from 373bf2b74f
2019-04-16 20:44:34 -07:00
Pranav K 92e86f9d02 Check for TargetFramework in addition to version (dotnet/aspnetcore-tooling#428)
* Check for TargetFramework in addition to version

\n\nCommit migrated from a4ed82f823
2019-04-16 11:13:26 -07:00
Doug Bunting ae4af3d154 Shorten Microsoft.AspNetCore.Razor.Language.Test paths (dotnet/aspnetcore-tooling#425)
* Shorten Microsoft.AspNetCore.Razor.Language.Test paths
- aspnet/AspNetCoredotnet/aspnetcore-tooling#9358 and aspnet/AspNetCoredotnet/aspnetcore-tooling#7882
- do 4046 renames
- adjust solutions to renamed directory
- special-case directory of the Microsoft.AspNetCore.Razor.Language.Test project in `TestProject`\n\nCommit migrated from 72b939d855
2019-04-15 10:46:17 -07:00
Pranav K 90eb9e8535 Fixup SDK workarounds (dotnet/aspnetcore-tooling#413)
* Correctly update the .NET Core SDK used in Razor
* Replace LangVersion 8.0 with LangVersion Preview
* Remove AddRazorSupportForMvc from projects that do not require it
* Cleanup how AspNetCore.App is not referenced in the project
* Remove uses of _RazorComponentInclude from tests\n\nCommit migrated from 81ea07caf7
2019-04-12 11:17:09 -07:00
Ajay Bhargav Baaskaran 607f64b386 Don't render text tags for component documents (dotnet/aspnetcore-tooling#391)
\n\nCommit migrated from cb6f5d0dc7
2019-04-06 19:46:24 -07:00
dotnet-maestro[bot] 7957c11d02 [master] Update dependencies from dotnet/arcade (dotnet/aspnetcore-tooling#346)
* Update dependencies from https://github.com/dotnet/arcade build 20190317.10

This change updates the following dependencies
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19167.10

* Update dependencies from https://github.com/dotnet/arcade build 20190320.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19170.2

* Update dependencies from https://github.com/dotnet/arcade build 20190321.3

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19171.3

* Update dependencies from https://github.com/dotnet/arcade build 20190321.6

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19171.6

* Update dependencies from https://github.com/dotnet/arcade build 20190325.9

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19175.9

* Update dependencies from https://github.com/dotnet/arcade build 20190326.14

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19176.14

* Update dependencies from https://github.com/dotnet/arcade build 20190327.11

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19177.11

* Update dependencies from https://github.com/dotnet/arcade build 20190329.1

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19179.1

* Update dependencies from https://github.com/dotnet/arcade build 20190329.2

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19179.2

* Update dependencies from https://github.com/dotnet/arcade build 20190401.12

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19201.12

* Update dependencies from https://github.com/dotnet/arcade build 20190402.13

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19202.13

* Update dependencies from https://github.com/dotnet/arcade build 20190403.10

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19203.10

* Update dependencies from https://github.com/dotnet/arcade build 20190404.16

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19204.16

* Update dependencies from https://github.com/dotnet/arcade build 20190405.6

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19205.6

* Use updated Arcade NuSpec helpers
- provide `InitializeStandardNuspecProperties` with expected information
- use `$CommonMetadataElements$` in Microsoft.NET.Sdk.Razor.nuspec

nits:
- correct a typo or two
\n\nCommit migrated from c60b63e296
2019-04-07 00:22:02 +00:00
Ajay Bhargav Baaskaran 35edb562c5 Match component childcontent tag helper from a different namespace (dotnet/aspnetcore-tooling#390)
\n\nCommit migrated from 8a815a1882
2019-04-05 16:00:29 -07:00
Pranav K 5b71a24b4f Fixup
\n\nCommit migrated from f6dd261211
2019-04-04 06:05:46 -07:00
Pranav K 37275e5fd5 Do not generate MVC attributes unless necessary
Fixes https://github.com/aspnet/AspNetCore/issues/8161
\n\nCommit migrated from a976b80c7c
2019-04-03 21:57:08 -07:00
Ajay Bhargav Baaskaran 01e9d70207 Decode HTML entities (dotnet/aspnetcore-tooling#379)
* Decode HTML entities
\n\nCommit migrated from 6b7b9a3bc3
2019-04-03 10:03:42 -07:00
Ajay Bhargav Baaskaran 249752087e Fix csharp intellisense in _Imports.razor (dotnet/aspnetcore-tooling#387)
* Fix csharp intellisense in _Imports.razor

* Feedback
\n\nCommit migrated from 229951a5c8
2019-04-02 21:55:37 -07:00
N. Taylor Mullen ea5d10509e Expand RazorProject.GetItem to take in FileKinds when getting items.
- Obsoleted old `GetItem` API.
- Updated tests to take new API.
- Added a new test to verify the broken scenario.

dotnet/aspnetcore-tooling#8972
\n\nCommit migrated from 2dd34b8dd8
2019-04-02 13:32:35 -07:00
Pranav K d365a92ca4 Ensure _TargetingNETCoreApp30OrLater is available for older design time targets (dotnet/aspnetcore-tooling#386)
* Ensure _TargetingNETCoreApp30OrLater is available for design time targets

\n\nCommit migrated from 9d7fd089a6
2019-04-02 13:00:22 -07:00
Pranav K 8bc448e255 Prevent build failures and warnings when building 2.x projects (dotnet/aspnetcore-tooling#382)
* Move targets for component design time generation to
Components.targets

* Provide a better error message when referencing a 2.x Razor.Design
package in a 3.0 project

* Do not produce a warning for unresolved configuration when building
2.x projects\n\nCommit migrated from b5b1647646
2019-04-01 22:38:09 -07:00
Ryan Nowak 2ff5e7301e Fixes: dotnet/aspnetcore-tooling#5640 FormatException from diagnostic
This was just a badly written diagnostic format string
\n\nCommit migrated from ef7d82a7ff
2019-04-01 20:44:26 -07:00
Ajay Bhargav Baaskaran 8bb16c28aa Prevent newlines from being encoded in the output (dotnet/aspnetcore-tooling#374)
* Prevent newlines from being encoded in the output
\n\nCommit migrated from 5f74fae0d2
2019-03-29 13:04:15 -07:00
Steve Sanderson 8a8e144653 Remove base.BuildRenderTree calls (dotnet/aspnetcore-tooling#368)
\n\nCommit migrated from bcc77db762
2019-03-28 12:46:36 +00:00
Ajay Bhargav Baaskaran 8eee2d5bc4 Skip running ModelDirective pass for component documents (dotnet/aspnetcore-tooling#372)
\n\nCommit migrated from 6824620cb0
2019-03-27 09:52:34 -07:00
Ajay Bhargav Baaskaran 730f3cdc6b Better support for _Imports.razor (dotnet/aspnetcore-tooling#357)
* Better support for _Imports.razor

* Special case component imports when generating code

* Prevent a future VS crash

* Rebased and updated

* update

* Removed unnecessary newline
\n\nCommit migrated from abbfe00bdc
2019-03-26 17:58:37 -07:00
N. Taylor Mullen 784596aba6 Add support for C# 8 using variable declarations and add more C# 8 coverage.
- When adding additional C# 8 tests found that we didn't fully support this.
- Updated the C# 8.0 test to fully encompass everything C# 8.0.
- Added a feature flag to control using variable declaration errors when not top level.
- Added using variable declaration specific tests.

aspnet/AspNetCoredotnet/aspnetcore-tooling#5092
\n\nCommit migrated from ac08ad3659
2019-03-26 17:37:12 -07:00
Pranav K 6eb9044660 Fixup invalid configuration error message (dotnet/aspnetcore-tooling#365)
* Fix invalid parameter used in error message
* Re-organize test code\n\nCommit migrated from 5a73c2abe9
2019-03-26 08:58:38 -07:00
Javier Calvarro Nelson 9c35c07a0b bind-Value on EditText often results in the wrong thing (dotnet/aspnetcore-tooling#364)
Updates the bindtaghelperdescriptorprovider to use the changed event property type name on the bound attribute instead of the value property type attribute.\n\nCommit migrated from 3009045206
2019-03-26 10:06:18 +01:00
N. Taylor Mullen f98ffcd759 Update more test files.
\n\nCommit migrated from 76c1352d2c
2019-03-25 20:26:36 -07:00