Answer the question
In order to leave comments, you need to log in
Is it possible in ASP.NET to write your own custom console tools?
I'm trying to find a way to run console commands to execute some kind of logic in the context of an ASP.NET project.
Here, for example, is an analogue from Flask
https://flask.palletsprojects.com/en/1.1.x/cli/#cu...
Or another example is the same
dotnet ef database update ,
but I need, for example
, dotnet run my-super-custom -method-with-aspnet-context
or, more specifically, an example of what I want to see
dotnet run create-user-and-send-confirmation-email
Something I can't google for something similar.
Answer the question
In order to leave comments, you need to log in
You are describing the dotnet tool
dotnet run which of course you can't do as it's a built-in command
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question