Home > Net >  Microsoft. AspNet. WebApi. Core tip is not compatible with 3.1
Microsoft. AspNet. WebApi. Core tip is not compatible with 3.1

Time:11-07

Originally installed Microsoft. AspNet. WebApi. The Core is good, but the tips do not compatible with 3.1, should do how?


I am a reference to the great god make a unified returned to encapsulate
https://www.coderminer.com/blog/post/271100cbaab23255d827e293c6cb861c#

CodePudding user response:

Open the project proj file, modify the first line of the XXXX. The SDK as XXX. SDK. Web

This don't know why Microsoft design, so a lot of people don't want to see the icon into a "browser" icon, would rather choose owin to make project pure point

CodePudding user response:


Hello, I am

CodePudding user response:

Has integrated the core, do not need to download, you may be the.net framework version of the download, so are not compatible,

CodePudding user response:

reference icoolno1 reply: 3/f
has integrated core, do not need to download, you may be the.net framework version of the download, so incompatible,


And interface are changed, the link you give is the.net framework written in MVC 5,

CodePudding user response:

.net core3.1 filter level is 1, authorization filter 2, resource selection 3, filter 4 operation, abnormal filter 5, as a result, the filter
If rewrite, you can rewrite the authorization filters AuthorizeAttribute or filter operation ActionFilterAttribute
Filter operation so inheritance

I have project recently migrated from the.net framework core3.1, many writing changed
The official filter document address: https://docs.microsoft.com/zh-cn/aspnet/core/mvc/controllers/filters? View=aspnetcore - 2.2 # authorization - filters
  • Related