TagHelperSamples
TagHelperSamples copied to clipboard
Version for .NET Core 1.1?
I've been looking around for a cleaner way of implementing authorizations rather than dumping code into my razor views. Feels too much like classic ASP with VBScript. This tag helper would help immensely with it, but my project is limited to 1.1. Is there a way to use this tag helper with 1.1? I see an issue for upgrading to 2.0, but I can't find a version previous to that.
I made this tag helper after I moved the samples repo over to 2.0 so I never did have a 1.1 version. I'm not sure if the 1.1 version would be much different. Can you start by trying to copy the code for this tag helper into your project?
Sorry for the late reply.
I tried copying the AuthorizeTagHelper class into my code, and it's missing a few things for it to work. There's no 1.1 version for Microsoft.AspNetCore.Authorization.Policy, which I suspect is the critical issue.