Feature Is Not Supported By The Language in C#

Example

error CS1545: 
	Property, indexer, or event 'Parameter.Value' is not supported by the language; 
	try directly calling accessor methods 
	'Parameter.get_Value()' or 'Parameter.set_Value(??)'

Fix(es)

Make sure that the build is being run by a recent enough version of Visual Studio. For example, I ran into this issue on TeamCity when the build stopped working suddenly (still unsure why), and changing the VS version to 2022 instead of 2019 got it working again.

c_sharp teamcity