I have a Window with the following namespace
xmlns:sysglb=\"clr-namespace:System.Globalization;assembly=mscorlib\"
that contains a textbox
Changing the project target framework to .NET Framework 4.6 or higher solves the issue.
Go to solution explorer and right-click on the affected Project -> Properties -> Application -> Target framework.