Execute Nuget Package Manager Console command from C# Console Application

Viewed 1207

I have a console app that auto generates C# classes and interfaces for a repository pattern based on poco entities which are auto generate using the Scaffold-DbContext command in the NuGet Package Manager Console w/in Visual Studio. In order to to automate the entire process of generating pocos and associated repositories and interfaces, I'd like to be able to call the Scaffold-DbContext command directly from the console app. Is it possible to call NuGet Package Manager Console commands outside of the native CLI?

0 Answers
Related