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

Loading assembly specified in addTagHelper fails when project has razor precompile module #2298

Closed
kirthik opened this issue Mar 30, 2015 · 0 comments
Assignees
Milestone

Comments

@kirthik
Copy link
Contributor

kirthik commented Mar 30, 2015

Add a simple taghelper

public class FooTagHelper : TagHelper
{

}

Create a view and add @addTagHelper "*, WebApplication2" and <foo> tag.
Run the app and it works fine.
Now add RazorPreCompilation code

public class RazorPreCompilation : RazorPreCompileModule
    {
        public RazorPreCompilation(IServiceProvider provider) : base(provider)
        {
        }
    }

and build the app
I am seeing following error

Cannot resolve TagHelper containing assembly 'WebApplication2'. Error: Could not load file or assembly 'Microsoft.AspNet.Razor.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
@danroth27 danroth27 added this to the 6.0.0-beta5 milestone Apr 1, 2015
@danroth27 danroth27 modified the milestones: 6.0.0-beta5, 6.0.0-beta6 May 22, 2015
@Eilon Eilon modified the milestones: 6.0.0-beta6, 6.0.0-beta7 Jul 1, 2015
@Eilon Eilon modified the milestones: 6.0.0-beta7, 6.0.0-beta8 Aug 14, 2015
pranavkm added a commit that referenced this issue Sep 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants