How to use dotnet CLI in CSharp code not through processes?

41 views Asked by At

I want to use the dotnet utility commands in the C# code, for example, to get a list of all the tests in the project or run the entire test project. At the same time, I want not just wrappers over console commands, but the code of the utility itself. Because sometimes console commands do not output everything that is necessary. I was hoping there was a nuget package with all this code, but I couldn't find it.

I've seen the Microsoft library.DotNet.Client.Utils but if I understood correctly, then this is just a wrapper over the console utility and does not suit me. I also saw the code https://github.com/dotnet/sdk?tab=readme-ov-file, which I understand contains what I need, but I don't understand how to connect it as a nuget package to the project

0

There are 0 answers