You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With regard to the Intermediate ASP.NET Core - Tag Helpers demonstration, whenever I try to add a reference to a custom tag helper, I get the following error:
I created the RepeatTagHelper.cs class in the project root of the ASP.NET Core app as Scott did in the demonstration, then tried using @addTagHelper in _ViewImports.cshtml and got an error similar to the one above.
Additionally, I tried to add a new .NET Core Class Library to the solution and build the tag helper into that. I added the appropriate NuGet packages to the class library, add a solution reference to the ASP.NET Core web app project, and tried to add the tag helper as shown above, and it still throws an error.
I've uploaded my project to GitHub. The RepeatTagHelper.cs class is included in the root of the web app, as well as in the class library in the TagHelpers folder. _ViewImports.cshtml is currently referencing the class library tag helper.
The text was updated successfully, but these errors were encountered:
Given the (admittedly strange) naming convention that I used for the project, the @addTagHelper declaration references the .dll, which would be named mvc-form or core-resources rather than the namespace that visual studio automatically modified when the project was created. See this StackOverflow Answer
With regard to the Intermediate ASP.NET Core - Tag Helpers demonstration, whenever I try to add a reference to a custom tag helper, I get the following error:
I created the
RepeatTagHelper.cs
class in the project root of the ASP.NET Core app as Scott did in the demonstration, then tried using@addTagHelper
in_ViewImports.cshtml
and got an error similar to the one above.Additionally, I tried to add a new .NET Core Class Library to the solution and build the tag helper into that. I added the appropriate NuGet packages to the class library, add a solution reference to the ASP.NET Core web app project, and tried to add the tag helper as shown above, and it still throws an error.
I've uploaded my project to GitHub. The
RepeatTagHelper.cs
class is included in the root of the web app, as well as in the class library in theTagHelpers
folder._ViewImports.cshtml
is currently referencing the class library tag helper.The text was updated successfully, but these errors were encountered: