diff --git a/sdk/dotnet/Pulumi.Automation/LocalWorkspace.cs b/sdk/dotnet/Pulumi.Automation/LocalWorkspace.cs index 4bd8f2d22..981e0e1d2 100644 --- a/sdk/dotnet/Pulumi.Automation/LocalWorkspace.cs +++ b/sdk/dotnet/Pulumi.Automation/LocalWorkspace.cs @@ -384,7 +384,7 @@ namespace Pulumi.Automation internal static SemVersion? ParseAndValidatePulumiVersion(SemVersion minVersion, string currentVersion, bool optOut) { - if (!SemVersion.TryParse(currentVersion, out var version)) + if (!SemVersion.TryParse(currentVersion, out SemVersion? version)) { version = null; }