Yet another Sudoku repo with the description "Yet another Sudoku repo".
First, reference the https://www.nuget.org/packages/BarbezDotEu.Sudoku.Generator/ package in your game solution.
Install-Package BarbezDotEu.Sudoku.Generator
Now, simply instantiate a new game. From there on out, its 'Solution' property is available.
var game = new SudokuGame();
IEnumerable<byte[]> solution = game.Solution;
Then, your own game logic is responsible to omit certain elements from the solution, and to have the gamer guess what they should be.