It seems you're using the local decimal denoter when writing floats and doubles. Take this example, in a Danish locale:
Vector2 vector2 =
)rectangle.Width * 0,5, (
)rectangle.Height * 0,5);
Notice the two decimal numbers use comma instead of period. Comma is the standard in Denmark, but it means the produced code is useless.
Actually, it seems to only happen in some cases.