Erro de código com MonoGame.

I’m new to programming, and I’m starting with C # (monogame) in visual studio 2012.
My problem is when I create a new project with MonoGame, MonoGame comes with the initial codes and it is with them that it is giving an error, I did not add anything in the code line, the only thing I changed was the comments, well just click on ¨start¨ and this appears in the image

this is the code that is giving error
if (GamePad.GetState (PlayerIndex.One) .Buttons.Back == ButtonState.Pressed || Keyboard.GetState (). IsKeyDown (Keys.Escape))

Windows 7
Visual Studio 2012
MonoGame Version 3.2

Reply

This error there is a classic error of lack of dependency (.dll) check if it is in the solution.

Vs 2012, talvez muito velho … sugiro instalar o Visual Studio 2017 community edition, se o seu computador pode executá-lo.
Uma vez instalado, atualize-o totalmente e adicione os sdk c ++ opcionais, particularmente os sdks c ++ 2012 e 2013.

Essa seria a maneira correta de configurar completamente o monogame e quase todas as outras bibliotecas populares de terceiros com ele para evitar problemas futuros.