Visual studio 2022 compiling only working iterations - C#