If you don't know how to use nuget, see below. https://learn.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio
You can also be achieved with the following code:
using System;
using System.Runtime.InteropServices;
class Program
{
[DllImport("kernel32.dll", ExactSpelling = true)]
private static extern IntPtr GetConsoleWindow();
[DllImport("user32.dll")]
private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
private const int SW_MAXIMIZE = 3;
static void Main(string[] args) {
IntPtr handle = GetConsoleWindow();
ShowWindow(handle, SW_MAXIMIZE);
Console.WriteLine("This is a fullscreen console application.");
Console.ReadLine();
}
}