Commit Graph

317 Commits

Author SHA1 Message Date
Javier Calvarro Nelson 0c907a8225 [Static web assets][Fixes #AspNetCore/17079] PublishSingleFile results in 404 errors for Nuget components
\n\nCommit migrated from 53dd89a41d
2019-12-05 07:52:49 -08:00
William Godbe 9328e4723e Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from 7e480a52e3 2019-11-22 11:12:31 -08:00
William Godbe 6942c1c7e3 Switch to Arcade model for PackageIcon (dotnet/aspnetcore-tooling#1325)
* Update dependencies from Arcade
* Switch to dotnet-eng\n\nCommit migrated from e37c190d7d
2019-11-20 19:27:17 -08:00
dotnet-maestro[bot] da085ad36d [release/3.1] Update dependencies from aspnet/Extensions (dotnet/aspnetcore-tooling#1347)
* Update dependencies from https://github.com/aspnet/Extensions build 20191118.3

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.1.0-rtm.19568.3
- Microsoft.AspNetCore.Testing - 3.1.0-rtm.19568.3
- Microsoft.Extensions.CommandLineUtils.Sources - 3.1.0-rtm.19568.3
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.1.0-rtm.19568.3
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.1.0-rtm.19568.3
- Microsoft.Extensions.Logging - 3.1.0

Dependency coherency updates

- Microsoft.NETCore.App.Runtime.win-x64 - 3.1.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.DependencyModel - 3.1.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Ref - 3.1.0 (parent: Microsoft.Extensions.Logging)

* Update flaky test

* another test
\n\nCommit migrated from b6f8920b2e
2019-11-19 21:28:03 +00:00
Pranav K 7f36d6e5f0 Associate inputs and outputs for .Views dll with a set in FastUpToDate check (dotnet/aspnetcore-tooling#1277)
Follow up to https://github.com/dotnet/project-system/issues/5596

FastUpToDateCheck now has a way to associate inputs and outputs using the Set attribute.
This change prevents FastUpToDateCheck from rebuilding a project when a *.cshtml file is
newer than the project's dll output.

Fixes https://github.com/aspnet/AspNetCore/issues/13204\n\nCommit migrated from 2bf9c12490
2019-10-31 12:31:50 -07:00
N. Taylor Mullen e2dc96c7b9 Fix runtime preventDefault / stopPropagation break.
- The Blazor runtime doesn't support adding attributes prior to any sort of content frames being applied. This change ensures that `ComponentAttributes` (how preventDefault / stopPropagation are represented) are handled like other HTML attributes (applied first).
- Updated existing tests and their baselines.

aspnet/AspNetCoredotnet/aspnetcore-tooling#16611
\n\nCommit migrated from 1513cd2a5b
2019-10-28 12:41:44 -07:00
dotnet-maestro[bot] 18457ddc85 [release/3.1] Update dependencies from dotnet/arcade (dotnet/aspnetcore-tooling#1257)
* Update dependencies from https://github.com/dotnet/arcade build 20191017.3

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

* Remove duplicate icon element
\n\nCommit migrated from ce261e9953
2019-10-23 18:12:55 +00:00
Pranav K 054c1c5e59 Retarget rzc.dll to netcoreapp3.0 (dotnet/aspnetcore-tooling#1253)
Based on the discussions here: https://github.com/aspnet/AspNetCore-Internal/issues/3201#issuecomment-539631557

rzc.dll targeting netcoreapp3.1 causes shared fx version conflicts when consumed as a package in the AspNetCore repo.
A fairly trivial workaround is to have it target it netcoreapp3.0 and allow it to roll-forward to the available shared fx.
This follows csc.dll's behavior, as well as solves the version conflict.

Fixes https://github.com/aspnet/AspNetCore-Internal/issues/3201\n\nCommit migrated from 3807c6a6c1
2019-10-18 11:23:05 -07:00
Ajay Bhargav Baaskaran 7f126d5694 Addressed minor comments
\n\nCommit migrated from c170fd9837
2019-10-18 10:55:45 -07:00
Ajay Bhargav Baaskaran 5badd94182 Add support for PreventDefault and StopPropagation in event handlers
\n\nCommit migrated from ae5be3efc0
2019-10-18 10:55:45 -07:00
N. Taylor Mullen 163c09f984 Add support for partial component class editing -> refresh components.
- We now do aggressive detection on the type of C# class that's being edited. In order to not impact C# scenarios we only do work if C# assets are available to us. Meaning, we inspect the old document and if that document has its' semantic model available we spend cycles to determine if it's a component. In the case that we find a C# component class that wasn't previously caught we enqueue an update.
- Added several tests to ensure we enqueue and that we properly detect component classes.

aspnet/AspNetCoredotnet/aspnetcore-tooling#14646
\n\nCommit migrated from d8b62e121f
2019-10-16 15:10:39 -07:00
Pranav K 82e62cb34f Add a flag to prevent config, json files from being copied to the build output directory (dotnet/aspnetcore-tooling#1240)
Fixes https://github.com/aspnet/AspNetCore/issues/14017\n\nCommit migrated from 8a99b91799
2019-10-16 14:34:59 -07:00
N. Taylor Mullen 49f8ae28cf Add support for using a 3.0 SDK on VS 16.4.
- The 3.0 SDK adds RazorDeclaration files to the compile list if they exist. If a user builds in VS and then does a project level operation (adding a property group or item group to their project file) a design time build will trigger for unrelated reasons and declaration files will be included as part of the C# compilation resulting in duplicate member errors. This change ensures that even if declaration files are added we then remove them to ensure we avoid those declaration additions.
- One unfortunate aspect of this change is that declarations are added to the compile list for a brief moment resulting in errors and then are instantly removed in some situations. I say "some situations" because when this happens it is highly dependent on how / when the project system decides to perform a design time build.

aspnet/AspNetCoredotnet/aspnetcore-tooling#14646
\n\nCommit migrated from b64c9317c4
2019-10-16 13:16:23 -07:00
Ajay Bhargav Baaskaran abef940002 Merge pull request dotnet/aspnetcore-tooling#1221 from dotnet-maestro-bot/merge/release/3.1-preview1-to-release/3.1
[automated] Merge branch 'release/3.1-preview1' => 'release/3.1'\n\nCommit migrated from b19a3f70a7
2019-10-09 13:29:22 -07:00
Ajay Bhargav Baaskaran 4281704bf6 Pass through the correct LangVersion to csc
\n\nCommit migrated from ce09369eb4
2019-10-08 15:55:17 -07:00
Ryan Nowak 73877e9c2f Allow expressions with @bind:event
Fixes aspnet/AspNetCoredotnet/aspnetcore-tooling#13181

The big change here is that we have to allow an HtmlAttributeIRNode to have
a dynamically computed attribute name. This isn't something that exists
anywhere else in the system.
\n\nCommit migrated from 559f0f5e52
2019-10-07 18:08:13 -07:00
Ryan Nowak dcc4084af8 Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from f9ac723b29 2019-10-07 12:10:26 -07:00
Ryan Nowak f19dc08305 Fix dotnet/aspnetcore-tooling#10498 - void elements with directive attributes
This change updates tag helper binding logic to allow directive
attributes (when they appear alone) to bind to any kind of tag
(start/end, void, self-closing).

Tag Helpers don't have a semantic that allows this level of flexibility
- using StartTagOnly as suggested in the issue means that this would
*only* work for void elements.

There's no change to any of the directive attribute implementations
because this is a global change in the tag helper infra.
\n\nCommit migrated from fd72afc1c6
2019-10-04 13:46:01 -07:00
William Godbe 418716e075 Merge pull request dotnet/aspnetcore-tooling#1194 from dotnet-maestro-bot/merge/release/3.1-preview1-to-release/3.1
[automated] Merge branch 'release/3.1-preview1' => 'release/3.1'\n\nCommit migrated from e8e044221f
2019-10-03 10:11:58 -07:00
wtgodbe 371f2c246b Switch to embedded package icon
\n\nCommit migrated from fba50fdcd4
2019-10-02 12:56:34 -07:00
wtgodbe 3ce7953fec One more missed convention location
\n\nCommit migrated from 1e6b4887c4
2019-10-02 12:33:27 -07:00
wtgodbe 7a61205024 Add workaround to one more project
\n\nCommit migrated from 381138fc72
2019-10-02 12:21:01 -07:00
wtgodbe 1d789575ae Embedded resource convention workaround
\n\nCommit migrated from 6e6faf5aaa
2019-10-02 12:17:01 -07:00
Doug Bunting 4c959bca07 Merge branch 'release/3.1-preview1' => 'release/3.1' (dotnet/aspnetcore-tooling#1187)
\n\nCommit migrated from c51841cbdc
2019-10-02 09:56:49 -07:00
Ajay Bhargav Baaskaran ef8830ffec Update baselines to unbreak tests (dotnet/aspnetcore-tooling#1184)
\n\nCommit migrated from 0d1e0d6eba
2019-10-01 13:59:41 -07:00
N. Taylor Mullen 1e9c0f01af Add Blazor partial class support in Visual Studio. (dotnet/aspnetcore-tooling#1182)
- No longer mark declaration files as single file generators. Prior to this we relied on SingleFileGenerators to dynamically update the declaration files when .razor files changed. However, to make partial classes work we can no longer depend on declaration files being available because their existence causes us to have to mangle class names for opened documents; otherwise you get two files with same name and result in ambiguous definition errors.
- Stopped including declaration files as part of the users compilation. This was intended to make the design time experience operate more similar to how Blazor apps function at runtime (directly access each component instead of their declarations). We now rely on the background code generation effort built from the find all references work to supply users with strongly typed component names.
- Stop mangling class names for Visual Studio. Razor.VSCode has its own set of configurations which i'm not addressing as part of this changeset.
- Start generating components with the partial modifier to their class name to enable partial class support.
- Updated existing tests to expect partial modifier.

aspnet/AspNetCoredotnet/aspnetcore-tooling#5487\n\nCommit migrated from 73858cdd37
2019-10-01 13:59:33 -07:00
Ajay Bhargav Baaskaran 0d5d6e7db6 Update baselines to unbreak tests (dotnet/aspnetcore-tooling#1184)
\n\nCommit migrated from 49542e0488
2019-09-30 22:13:12 -07:00
N. Taylor Mullen 5acc0ae288 Add Blazor partial class support in Visual Studio. (dotnet/aspnetcore-tooling#1182)
- No longer mark declaration files as single file generators. Prior to this we relied on SingleFileGenerators to dynamically update the declaration files when .razor files changed. However, to make partial classes work we can no longer depend on declaration files being available because their existence causes us to have to mangle class names for opened documents; otherwise you get two files with same name and result in ambiguous definition errors.
- Stopped including declaration files as part of the users compilation. This was intended to make the design time experience operate more similar to how Blazor apps function at runtime (directly access each component instead of their declarations). We now rely on the background code generation effort built from the find all references work to supply users with strongly typed component names.
- Stop mangling class names for Visual Studio. Razor.VSCode has its own set of configurations which i'm not addressing as part of this changeset.
- Start generating components with the partial modifier to their class name to enable partial class support.
- Updated existing tests to expect partial modifier.

aspnet/AspNetCoredotnet/aspnetcore-tooling#5487\n\nCommit migrated from ecb3b1bdf0
2019-09-30 19:40:34 -07:00
Ajay Bhargav Baaskaran 3dcc779659 Prefer child content over a matching component (dotnet/aspnetcore-tooling#1180)
* Prefer child content over a matching component

* feedback
\n\nCommit migrated from 9c83a09944
2019-09-27 14:27:10 -07:00
Ajay Bhargav Baaskaran 39d8e322d1 Fix misc attribute content sometimes getting ignored (dotnet/aspnetcore-tooling#1176)
\n\nCommit migrated from 8108f50021
2019-09-27 14:22:21 -07:00
Ryan Brandenburg 287b183189 Responding to Pranav's feedback
\n\nCommit migrated from 353a27828e
2019-09-26 13:58:03 -07:00
Ryan Brandenburg eda9503177 RazorSDK doesn't overwrite ErrorLog
\n\nCommit migrated from aed7bc8ec6
2019-09-26 13:58:03 -07:00
William Godbe b8575a5098 Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from 68f7376ef6 2019-09-26 10:18:00 -07:00
Ajay Bhargav Baaskaran c05fca5137 Remove 1.x tests (dotnet/aspnetcore-tooling#1169)
\n\nCommit migrated from bd71bcf87b
2019-09-25 10:50:13 -07:00
Javier Calvarro Nelson f6c5aa73c1 Capture process dumps for child dotnet processes (dotnet/aspnetcore-tooling#1170)
\n\nCommit migrated from e283d0be15
2019-09-25 18:11:35 +02:00
Pranav K b553f8a08d Remove empty lines
\n\nCommit migrated from f925f138ef
2019-09-24 18:13:26 -07:00
Pranav K 5ac56229e1 Fixup build errors
\n\nCommit migrated from 83b434dfc3
2019-09-24 18:12:16 -07:00
wtgodbe bc9f13b3ef Merge branches
\n\nCommit migrated from 973448284c
2019-09-24 13:20:39 -07:00
wtgodbe fd7b5b6604 Switch to embedded PackageIcon
\n\nCommit migrated from 2aee3e23bb
2019-09-24 13:19:08 -07:00
N. Taylor Mullen d0d09a2c61 Merge branch 'nimullen/13494.prereq' into release/3.1
\n\nCommit migrated from e980416506
2019-09-20 11:46:12 -07:00
N. Taylor Mullen 5bb36d86f1 Integrate Razor VSCode extension functional tests into src/Razor.
- Added the `.vscode-test` to `.gitignore` because that's the VSCode folder that gets created when dynamically downloading VSCode for CI purposes.
- Migrated functional tests to use the non-deprecated VSCode functional testing APIs. This involved creating a runTest file to control downloading VSCode and passing in appropriate parameters as well as creating an index that discovers tests that should be run.
- Changed functional tests to operate on the existing Razor testapps (instead of the old ones).
- Updated the "default" completion tests to be latest Razor/Blazor.
- Added VSCode launch configurations to enable easy debugging via F5.

aspnet/AspNetCoredotnet/aspnetcore-tooling#13494
\n\nCommit migrated from 66e4e8a169
2019-09-20 11:44:08 -07:00
N. Taylor Mullen 66f2aac299 Integrate Razor LanguageServer (without plugin) into src/Razor.
- Added tests for both the language server and the common language server projects.
- Updated publish MSBuild bits to publish to `artifacts/LanguageServer/$(Configuration)/TFM`
- Updated the language server to be netcoreapp3.0

aspnet/AspNetCoredotnet/aspnetcore-tooling#13494
\n\nCommit migrated from 984c638b37
2019-09-20 11:44:08 -07:00
Javier Calvarro Nelson dfbb36ee10 [Infrastructure] Fix invalid variable names
ProcDumpPath -> ProcDumpToolPath
_BuildConfiguration -> _BuildConfig\n\nCommit migrated from f283e4a7c0
2019-09-20 11:09:22 +02:00
Javier Calvarro Nelson bcd542a1bb [Infrastructure] Install procdump and capture dumps on build hangs (dotnet/aspnetcore-tooling#1146)
* Captures process dumps when the build hangs.
* Captures process dumps when a child process hangs inside a test.
\n\nCommit migrated from a9b7e24791
2019-09-19 18:36:02 +02:00
John Luo a2081d584f Fix razor tool assembly path (dotnet/aspnetcore-tooling#1138)
\n\nCommit migrated from 88cd749f38
2019-09-15 08:05:47 -07:00
Doug Bunting 51ec2760aa Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from 683059f2cb 2019-09-14 17:12:43 -07:00
dotnet-maestro[bot] 901f8aa76d [release/3.0] Update dependencies from aspnet/Extensions (dotnet/aspnetcore-tooling#1132)
* Update dependencies from https://github.com/aspnet/Extensions build 20190913.2

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-rc2.19463.2
- Microsoft.AspNetCore.Testing - 3.0.0-rc2.19463.2
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-rc2.19463.2
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-rc2.19463.2
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-rc2.19463.2
- Microsoft.Extensions.Logging - 3.0.0-rc2.19463.2

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.App.Runtime.win-x64 - 3.0.0 (parent: Microsoft.Extensions.Logging)
- System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Extensions.DependencyModel - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Ref - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)

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

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-rc2.19463.3
- Microsoft.AspNetCore.Testing - 3.0.0-rc2.19463.3
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-rc2.19463.3
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-rc2.19463.3
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-rc2.19463.3
- Microsoft.Extensions.Logging - 3.0.0

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.App.Runtime.win-x64 - 3.0.0 (parent: Microsoft.Extensions.Logging)
- System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Extensions.DependencyModel - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Ref - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)

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

- Microsoft.AspNetCore.BenchmarkRunner.Sources - 3.0.0-rc2.19463.5
- Microsoft.AspNetCore.Testing - 3.0.0-rc2.19463.5
- Microsoft.Extensions.CommandLineUtils.Sources - 3.0.0-rc2.19463.5
- Microsoft.Extensions.HashCodeCombiner.Sources - 3.0.0-rc2.19463.5
- Microsoft.Extensions.NonCapturingTimer.Sources - 3.0.0-rc2.19463.5
- Microsoft.Extensions.Logging - 3.0.0

Dependency coherency updates

- System.Diagnostics.DiagnosticSource - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.App.Runtime.win-x64 - 3.0.0 (parent: Microsoft.Extensions.Logging)
- System.Reflection.Metadata - 1.7.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 4.6.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Extensions.DependencyModel - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Ref - 3.0.0 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 3.0.0 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Net.Compilers.Toolset - 3.3.1-beta4-19462-11 (parent: Microsoft.Extensions.Logging)

* Restore test projects prior to running SDK tests (dotnet/aspnetcore-tooling#1078)

* Fix 3.0 tests
\n\nCommit migrated from eaf897c542
2019-09-14 19:38:15 +00:00
John Luo 1606d9b0d3 Support netcoreapp3.1 TFM (dotnet/aspnetcore-tooling#1122)
* Support netcoreapp3.1 TFM

* Update branding to preview1

* Skip failing 1.1 test
\n\nCommit migrated from 133b252f09
2019-09-12 22:02:18 -07:00
Ajay Bhargav Baaskaran 61726ae9df Restore test projects prior to running SDK tests (dotnet/aspnetcore-tooling#1078)
\n\nCommit migrated from e6bb507271
2019-09-10 17:45:59 -07:00
John Luo d5c2d17c11 Merge pull request dotnet/aspnetcore-tooling#983 from aspnet/johluo/sdk
Update SDK to preview 8\n\nCommit migrated from 62d5ccbd6a
2019-08-21 15:42:29 -07:00