Fix a build warning and runtime error due to a version conflict.
Fix a build warning and runtime error due to a version conflict.

GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet,GoogleCloudPlatform/getting-started-dotnet