For some errors like this, go to check official definition for that Middleware or Method, in my case, my original project was in Asp.NET Core 2.0, but UseHsts middleware is used from 2.1
The path for config file is “/Users/YourUserAccount/.config/NuGet/NuGet.Config”, recorded here for further use. I encountered with a NuGet cannot connect with source error, some answers in Github issue and Stackoverflow pointed out NuGet use proxy to speed up access to packages, unfortunately, many answers seem to require prerequisites to understand. I instead updated my vs2017 to …
At first, I define the action object with “action_type” property, then it throws me the error below: After replacing “action_type” by “type”, problem solved.