sharpgl anti aliasing

I follow a tutorial from learnopengl.com, and I can not get anti aliasing to work. I tried this code and it does nothing. Is there another way to do anti aliasing? Any help is appreciated, thanks.


gl.Enable(OpenGL.GL_MULTISAMPLE);

Was your framebuffer created with multisample ?
From learnopengl.com, before enabling multisample:

glfwWindowHint(GLFW_SAMPLES, 4);

How do you create your window ?