Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Remove old razor #5977

Merged
merged 1 commit into from
Mar 17, 2017
Merged

Remove old razor #5977

merged 1 commit into from
Mar 17, 2017

Conversation

ryanbrandenburg
Copy link
Contributor

Remove usages of old razor.

@@ -16,6 +16,7 @@
<ItemGroup>
<ProjectReference Include="..\Microsoft.AspNetCore.Mvc.Razor\Microsoft.AspNetCore.Mvc.Razor.csproj" />

<PackageReference Include="Microsoft.AspNetCore.Razor" Version="$(AspNetCoreVersion)" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

Copy link
Contributor

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

Copy link
Member

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.

@ryanbrandenburg
Copy link
Contributor Author

Looks like some tests such as RazorEngineTest.RazorEngine_Model_DesignTime are failing here. Do I just have to change these numbers to meet the new ones being output?

@ajaybhargavb
Copy link
Contributor

Rebasing with dev should fix it 👍

@@ -10,22 +10,18 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
public class CompositeTagHelperDescriptorResolver : ITagHelperDescriptorResolver
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Member

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.

Copy link
Member

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));
Copy link
Contributor

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)" />
Copy link
Contributor

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?

@ryanbrandenburg ryanbrandenburg force-pushed the rybrande/RemoveOldRazor branch 2 times, most recently from 0e09ef5 to 7db0bee Compare March 17, 2017 21:26
Copy link
Member

@rynowak rynowak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: as long as the tests are passing 👍

@ryanbrandenburg ryanbrandenburg force-pushed the rybrande/RemoveOldRazor branch from 8afcd7b to 270f661 Compare March 17, 2017 22:02
@ryanbrandenburg ryanbrandenburg merged commit 270f661 into dev Mar 17, 2017
@ryanbrandenburg ryanbrandenburg deleted the rybrande/RemoveOldRazor branch March 17, 2017 22:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants