Граф коммитов

829 Коммитов

Автор SHA1 Сообщение Дата
Javier Calvarro Nelson 15c32f38e9 Error cases 2022-02-11 08:12:29 -08:00
Javier Calvarro Nelson 2321aad887 Update new test baselines 2022-02-11 07:18:51 -08:00
Javier Calvarro Nelson 6dce557a9b Update existing baselines 2022-02-11 07:18:10 -08:00
Javier Calvarro Nelson 90203420d2 Update existing tests 2022-02-11 07:09:45 -08:00
Javier Calvarro Nelson 9865dd260b Tests 2022-02-11 07:07:45 -08:00
Javier Calvarro Nelson c72aed7b3a bind:get, bind:set, bind:after source changes 2022-02-11 07:04:41 -08:00
Javier Calvarro Nelson 080bb02308
Avoid globally qualifying user defined types (#69)
* Avoid globally qualifying explicit type parameters
2022-02-04 01:34:57 -08:00
dotnet-maestro-bot 49bbb54415
[automated] Merge branch 'release/6.0.2xx' => 'main' (#65)
* Update dependencies from https://github.com/dotnet/arcade build 20220130.1 (#57)

Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.22071.6 -> To Version 7.0.0-beta.22080.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* [release/6.0.2xx] Backport CODEOWNERS (#61)

So we get appropriate notifications. Extension of https://github.com/dotnet/razor-compiler/pull/54.

Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
2022-02-01 14:07:57 -08:00
Sam Harwell eba27a398d
Cache 'base.Visit*' delegates (#64)
* Cache delegates in RazorHtmlWriter

* Cache delegates in ClassifiedSpanVisitor
2022-02-01 21:26:15 +00:00
Sam Harwell 82e91d8874
Unify comparer implementations and improve performance (#60)
* Unify Equals and GetHashCode for BoundAttributeParameterDescriptorComparer

* Unify Equals and GetHashCode for BoundAttributeDescriptorComparer

* Clean up RequiredAttributeDescriptorComparer

* Clean up TagMatchingRuleDescriptorComparer

* Clean up AllowedChildTagDescriptorComparer

* Unify Equals and GetHashCode for TagHelperDescriptorComparer
2022-02-01 11:23:17 -08:00
Sam Harwell 427991ec87
Enforce IDE0011 (Add braces) on build (#62)
* Enforce IDE0011 (Add braces) on build

This style follows the configuration from dotnet/aspnetcore, which
intentionally deviates from the recommendation made by dotnet/runtime
and dotnet/roslyn.

* Fix all IDE0011 (Add braces)
2022-01-31 17:24:15 -08:00
Sam Harwell a4df79c2bc
Enable nullable reference types (#59)
* Use `<Nullable>enable</Nullable>` in all projects
* Add `#nullable disable` to all unannotated source files
* Update existing `#nullable` directives to preserve their current behavior

This pull request changes the default behavior for new source files to have nullable reference types enabled, but is not expected to change the meaning of any file already in the project.
2022-01-31 15:39:04 -08:00
Doug Bunting f86cb88339
Merge pull request #47 from dotnet-maestro-bot/merge/release/6.0.2xx-to-main
[automated] Merge branch 'release/6.0.2xx' => 'main'
2022-01-25 15:35:34 -08:00
Doug Bunting 7db7e7ea22
[main] Remove invalid post-build parameter (#52)
- template does not support a `pool` parameter
2022-01-25 22:26:08 +00:00
Doug Bunting bebbb57346
[release/6.0.2xx] Remove invalid post-build parameter (#50)
- template does not support a `pool` parameter
2022-01-25 22:17:24 +00:00
dotnet-maestro[bot] bb51e29300
Update dependencies from https://github.com/dotnet/arcade build 20220121.6 (#43)
Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.22064.25 -> To Version 7.0.0-beta.22071.6

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-01-25 09:35:27 -08:00
Javier Calvarro Nelson 966311e264
Several fixes to generic type constraints
* Type constraints on type parameters are now globally fully qualified.
* Type parameter constraints that don't have type constraints will not incorrectly prevent a comma any longer.
2022-01-25 03:07:35 -08:00
Javier Calvarro Nelson bad001fc40
Applies 'global::' across the board for design time and runtime code generation (#34)
Updates component code-generation to apply 'global::' as much as possible in all code we control.
Updates the baselines to reflect the changes in the generated code.
2022-01-24 02:55:45 -08:00
Tanay Parikh 3b653a0777
Add `azure-pipelines.yml`, `NuGet.config` to CODEOWNERS (#42) 2022-01-22 01:27:25 +00:00
dotnet-maestro-bot 540d8e0657
[release/6.0] Use 1ES machines for official builds (#40) (#41)
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2022-01-22 01:15:44 +00:00
William Godbe fb9e5774d7
Update branding to preview2 (#38) 2022-01-21 17:01:20 -08:00
Doug Bunting e1bc5c8eb0
[release/6.0] Use 1ES machines for official builds (#40) 2022-01-21 16:46:13 -08:00
Doug Bunting 23f11f5336
Merge pull request #30 from dotnet-maestro-bot/merge/release/6.0.2xx-to-main
[automated] Merge branch 'release/6.0.2xx' => 'main'
2022-01-21 16:37:31 -08:00
dotnet-maestro[bot] 28ae205f2f
Update dependencies from https://github.com/dotnet/arcade build 20220114.25 (#32)
Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.22056.6 -> To Version 7.0.0-beta.22064.25

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2022-01-21 15:46:27 -08:00
Tanay Parikh 848e96cc43
Stop Eating Optional `;` after `@typeparam` (#36)
* Add Razor Directive Tests

* Stop eating token

* Baseline updates
2022-01-21 07:11:34 -08:00
Tanay Parikh 51865f2c31
Update CODEOWNERS (#39)
* Update CODEOWNERS

* Update .github/CODEOWNERS

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2022-01-21 02:09:26 +00:00
William Godbe d51f422d5f
Update branding to preview1 (#35) 2022-01-20 16:05:41 -08:00
Tanay Parikh 1f9665a2cb
Add CODEOWNERS (#37)
* Add CODEOWNERS

* PR Feedback
2022-01-20 14:56:37 -08:00
Tanay Parikh 1303a9edd8
Razor Compiler Codespaces Support (#33)
* Support Codespaces for Razor Compiler

* Fix target
2022-01-20 10:49:33 -08:00
Pranav K df78e4d651
Use nullable context when declaring the class for Razor views (#29) (#31)
Currently the Razor compiler suppresses nullable annotations within most generated code. https://github.com/dotnet/aspnetcore/issues/39360 tracks addressing this, but that would need a fair bit of work to get right. In the meantime, https://github.com/dotnet/aspnetcore/issues/37510 is affecting a lot of users attempting to turn on nullability in their apps. 

The value of the `@model` directive appears as part of the class declaration for a Razor View: 

```C#
@model MyModel?

// Results in 
#nullable disable
internal sealed class _Views_Home_Index : RazorPage<MyModel?> // This will produce a warning since it's not within a nullable context
```

The `#nullable disable` precludes the ability of the user to be able to specify a nullable `model`. This change updates the compiler and generates the class declaration within a nullable context, as long as the C# version is recent enough to support nullability. The generated code now looks like:

```C#
@model MyModel?

// Results in 
...
#nullable restore // Use the nullability based on the project's global settings
internal sealed class _Views_Home_Index : RazorPage<MyModel?>
#nullable disable
```

In addition to the class declaration, we also need to generate the properties for `@inject` within a nullable context. This is because all views have an implicit `@inject IHtmlHelper<TModel>` where `TModel` is the model type.
2022-01-12 14:21:13 -08:00
dotnet-maestro[bot] 0e7b02571a Update dependencies from https://github.com/dotnet/arcade build 20220106.6
Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.21623.2 -> To Version 7.0.0-beta.22056.6
2022-01-12 12:33:07 -08:00
dotnet-maestro[bot] 4e03fd253f Update dependencies from https://github.com/dotnet/arcade build 20211230.1
Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.21623.2 -> To Version 7.0.0-beta.21630.1
2022-01-12 12:33:07 -08:00
Pranav K 952c29ce24
Use nullable context when declaring the class for Razor views (#29)
Currently the Razor compiler suppresses nullable annotations within most generated code. https://github.com/dotnet/aspnetcore/issues/39360 tracks addressing this, but that would need a fair bit of work to get right. In the meantime, https://github.com/dotnet/aspnetcore/issues/37510 is affecting a lot of users attempting to turn on nullability in their apps. 

The value of the `@model` directive appears as part of the class declaration for a Razor View: 

```C#
@model MyModel?

// Results in 
#nullable disable
internal sealed class _Views_Home_Index : RazorPage<MyModel?> // This will produce a warning since it's not within a nullable context
```

The `#nullable disable` precludes the ability of the user to be able to specify a nullable `model`. This change updates the compiler and generates the class declaration within a nullable context, as long as the C# version is recent enough to support nullability. The generated code now looks like:

```C#
@model MyModel?

// Results in 
...
#nullable restore // Use the nullability based on the project's global settings
internal sealed class _Views_Home_Index : RazorPage<MyModel?>
#nullable disable
```

In addition to the class declaration, we also need to generate the properties for `@inject` within a nullable context. This is because all views have an implicit `@inject IHtmlHelper<TModel>` where `TModel` is the model type.
2022-01-12 11:40:05 -08:00
dotnet-maestro[bot] b3a582f601
Update dependencies from https://github.com/dotnet/arcade build 20211223.2 (#25)
[release/6.0.2xx] Update dependencies from dotnet/arcade
2022-01-06 20:24:26 +00:00
Pranav K 11a9f2564e
Merge pull request #27 from dotnet-maestro-bot/merge/release/6.0.2xx-to-main
[automated] Merge branch 'release/6.0.2xx' => 'main'
2022-01-06 12:03:10 -08:00
Allison Chou f37ce7d93a
Add optional range to SyntaxWalker (#26) 2022-01-04 01:01:47 +00:00
Doug Bunting d289645b89
Merge pull request #24 from dotnet-maestro-bot/merge/release/6.0.2xx-to-main
[automated] Merge branch 'release/6.0.2xx' => 'main'
2022-01-03 11:09:56 -08:00
Doug Bunting 5c34878fad
Merge branch 'main' into merge/release/6.0.2xx-to-main 2022-01-03 10:49:41 -08:00
Pranav K 1f102ba483
Merge pull request #23 from dotnet/prkrishn/merge-changes
Merge changes from 6.0.2xx
2021-12-27 09:28:44 -08:00
Doug Bunting f7e30f36fa
Enable in-build signing (#22)
- also validate signed packages
2021-12-22 13:50:53 -08:00
dotnet-maestro[bot] 1ab1139477
[release/6.0.2xx] Update dependencies from dotnet/arcade (#21)
* Update dependencies from https://github.com/dotnet/arcade build 20211215.1

Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.21576.4 -> To Version 7.0.0-beta.21615.1

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

Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.21576.4 -> To Version 7.0.0-beta.21617.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-12-22 10:05:03 -08:00
Pranav K 1a366c9590
Merge remote-tracking branch 'origin/release/6.0.2xx' 2021-12-22 09:58:03 -08:00
Pranav K 4f3978c025
Rename the tooling internal package (#20)
Contributes to https://github.com/dotnet/aspnetcore/issues/39072
2021-12-16 10:56:22 -08:00
dotnet-maestro[bot] 07e115540f
[main] Update dependencies from dotnet/arcade (#16)
* Update dependencies from https://github.com/dotnet/arcade build 20211210.4

Microsoft.DotNet.Arcade.Sdk
 From Version 7.0.0-beta.21576.4 -> To Version 7.0.0-beta.21610.4

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-12-15 16:58:43 -08:00
William Godbe 4e7d2be7c4
Try setting WindowsPdb (#19) 2021-12-09 15:51:37 -08:00
William Godbe 7c41711efc
Try setting WindowsPdb (#18) 2021-12-09 15:51:29 -08:00
Ryan Brandenburg b13121d960
Handle nested self-closing tags (#13)
* Handle nested self-closing tags
2021-12-03 11:29:23 -08:00
Pranav K 26952d8f27
Produce transport packages for tooling (#14)
a) Stops packaging any of the runtime packages
b) Produces new transport packages to be consumed by tooling and SDK
c) Stops packaging the Microbenchmarks package.
2021-12-02 15:56:07 -08:00
Pranav K 9a4538a6f0
Reverting version stabilization changes (#12)
Per https://github.com/dotnet/razor-compiler/pull/10/files#r760754594, we'd like to hold off on producing stable version packages right away. We'd also like to use the versioning scheme that Roslyn uses. Rolling back some parts of https://github.com/dotnet/razor-compiler/pull/10/files
2021-12-02 10:49:09 -08:00
Doug Bunting e463ffffa9
Stabilize versions (#10)
- stabilize versions
- bump Microsoft.CodeAnalysis.CSharp version
  - don't want non-stable dependencies
2021-12-02 02:20:17 +00:00