Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was 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

@kirthik

Description

@kirthik

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions