I'm trying programmatically with C# base code to restore packageReference for .NET framework & .NET core projects.
I thought about using dotnet.exe / msbuild.exe but I don't know how!
I want to simulate what we can do with dotnet CLI:
dotnet restore '.\myproject.csproj' --packages '.\OutputFolder'
but I want to do it programmatically.
Thanks for the answers.