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

Removing MvcViewEngineDescriptor and switching to use OptionsSetup to #2878

Merged
merged 1 commit into from
Jul 29, 2015

Conversation

pranavkm
Copy link
Contributor

setup RazorViewEngine.

Fixes #2269

@pranavkm
Copy link
Contributor Author

Built against volatile to pick up DNX renames.

{
options.ViewEngines.Add(typeof(RazorViewEngine));
var razorViewEngine = ActivatorUtilities.CreateInstance<RazorViewEngine>(serviceProvider);
Copy link
Member

Choose a reason for hiding this comment

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

Why not just register RazorViewEngine and then resolve it?

@pranavkm pranavkm force-pushed the prkrishn/ViewEngineDescriptor branch from 2d04187 to 7120b2f Compare July 29, 2015 21:14
@pranavkm pranavkm merged commit 7120b2f into dev Jul 29, 2015
@pranavkm pranavkm deleted the prkrishn/ViewEngineDescriptor branch July 29, 2015 21:18
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.

None yet

3 participants