-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
@@ -16,6 +16,7 @@ | |||
<ItemGroup> | |||
<ProjectReference Include="..\Microsoft.AspNetCore.Mvc.Razor\Microsoft.AspNetCore.Mvc.Razor.csproj" /> | |||
|
|||
<PackageReference Include="Microsoft.AspNetCore.Razor" Version="$(AspNetCoreVersion)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question for others below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These assemblies are still needed for Tag Helpers. What's important is that we need to remove usage of the old compiler types.
Looks like some tests such as |
Rebasing with dev should fix it 👍 |
@@ -10,22 +10,18 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal | |||
public class CompositeTagHelperDescriptorResolver : ITagHelperDescriptorResolver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would we still need this type if all its doing is delegating to the inner one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, but it's my understanding that we'll be adding the ViewComponentTagHelperDescriptorResolver back in, so I figured we didn't want to do too much work rearchitecting this in the meantime.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ITagHelperDescriptorResolver
type here is going to be removed. Let's delete this and bring it back in Razour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need to remove this because ITagHelperDescriptorResolver
is being removed
var resolverDescriptor = Assert.Single(services.ToList(), d => d.ServiceType == typeof(ITagHelperTypeResolver)); | ||
Assert.Equal(typeof(FeatureTagHelperTypeResolver), resolverDescriptor.ImplementationType); | ||
// This was removed to facilitate the move to new razor and will be re-added as part of https://github.com/aspnet/Mvc/issues/5768 | ||
//var resolverDescriptor = Assert.Single(services.ToList(), d => d.ServiceType == typeof(ITagHelperTypeResolver)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove it for now. It's in the source control history if you need to look it up. Let's not leave commented out code.
@@ -12,6 +12,7 @@ | |||
<ProjectReference Include="..\Microsoft.AspNetCore.Mvc.TestCommon\Microsoft.AspNetCore.Mvc.TestCommon.csproj" /> | |||
|
|||
<PackageReference Include="Microsoft.AspNetCore.Http" Version="$(AspNetCoreVersion)" /> | |||
<PackageReference Include="Microsoft.AspNetCore.Razor" Version="$(AspNetCoreVersion)" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the test need an explicit reference?
0e09ef5
to
7db0bee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as the tests are passing 👍
8afcd7b
to
270f661
Compare
Remove usages of old razor.