I am studying MVC 6. It was going ok, however after adding the taghelper in my _ViewImports.cshtml my app stopped.
These are my dependencies:
"dependencies": {
"Microsoft.AspNetCore.Mvc": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-rc2-final",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-rc2-final",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-rc2-final",
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final",
"Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final"
},
I added this line:
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
And now I am getting the error:
Cannot resolve TagHelper containing assembly 'Microsoft.AspNet.Mvc.TagHelpers'. Error: Could not load type 'Microsoft.Extensions.Logging.ILogValues' from assembly 'Microsoft.Extensions.Logging.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. @addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
Any suggestions ? I could not find anything related to the same message.
I was having the same issue. It looks like the assembly part has changed in RC2. I fixed it by changing from:
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
to:
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With