Monogame Error? - Vector2 does not work

I created a variable
public Vector2 virtualRes;
virtualRes = new Vector2(800, 400);
ran it
variable contains
virtualRes = error CS0103: The name ‘DebugDisplayString’ does not exist in the current context

How can this be?

Am I referencing a Monogame assembly that does not support Vector2?

How did you get the value? With a breakpoint?

Thank you for the reply.
Yes, I put a break point just after and checked the value.

Vector2 provides an internal property DebugDisplayString that returns a string representation of the Vector2 for use by Visual Studio’s debug visualizer. This property is referenced by the DebugDisplayAttribute on Vector2. This is an example of how it looks (using latest MonoGame).

Why your editor cannot locate the DebugDisplayString property in Vector2, I do not know.

Not sure what is going on. I now can’t even get into my code. I keep getting this error on my game object:
System.NullReferenceException: ‘Object reference not set to an instance of an object.’

When I try to set a reference to a monogame assembly visual studio keeps changing the reference to something else.

Just to close this issue.

I rebuilt my game and it now deserializes Vector2 correctly. Why it didn’t work before, I have no idea.