1 write to Version
Microsoft.DotNet.Cli.CoreUtils (1)
Product.cs (1)
18
Version
= versionFile.BuildNumber
28 references to Version
dotnet (20)
CliSchema.cs (1)
114
version: Product.
Version
,
CommandLineInfo.cs (2)
21
Reporter.Output.WriteLine(Product.
Version
);
33
Reporter.Output.WriteLine($" Version: {Product.
Version
}");
Commands\Help\HelpCommand.cs (2)
41
var versionString = string.IsNullOrEmpty(Product.
Version
) ? string.Empty : $" ({Product.
Version
})";
Commands\New\NewCommandParser.cs (2)
132
{ "dotnet-cli-version", Product.
Version
},
138
Product.
Version
,
Commands\New\SdkInfoProvider.cs (1)
34
return Task.FromResult(Product.
Version
);
Commands\Run\VirtualProjectBuildingCommand.cs (1)
784
SdkVersion = Product.
Version
,
Commands\Sdk\Check\SdkCheckCommand.cs (1)
34
var configFilePath = Path.Combine(_dotnetPath, "sdk", dotnetVersion ?? Product.
Version
, "sdk-check-config.json");
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
242
.Where(f => f.Version < new NuGetVersion(Product.
Version
).Version)
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
65
var sdkVersion = Product.
Version
;
173
SdkFeatureBand featureBand = new(Product.
Version
);
Commands\Workload\Install\WorkloadResolverFactory.cs (1)
34
result.SdkVersion = new ReleaseVersion(Product.
Version
);
Commands\Workload\WorkloadInfoHelper.cs (2)
37
ReleaseVersion currentSdkReleaseVersion = new(currentSdkVersion ?? Product.
Version
);
191
reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(Product.
Version
), dotnetPath).ToString(),align}"
ParserOptionActions.cs (2)
119
Reporter.Output.WriteLine(Product.
Version
);
141
Reporter.Output.WriteLine($" Version: {Product.
Version
}");
Program.cs (1)
38
private static readonly string s_toolPathSentinelFileName = $"{Product.
Version
}.toolpath.sentinel";
Telemetry\TelemetryCommonProperties.cs (1)
63
{ ProductVersion, Product.
Version
},
Microsoft.DotNet.Cli.Definitions (3)
Common\TargetPlatformOptions.cs (3)
117
string runtimeIdentifierChainPath = string.IsNullOrEmpty(Product.
Version
) || !Directory.Exists(Path.Combine(sdkPath, Product.
Version
)) ?
119
Path.Combine(sdkPath, Product.
Version
, ridFileName);
Microsoft.DotNet.Cli.Utils (1)
Activities.cs (1)
18
public static ActivitySource Source { get; } = new("dotnet-cli", Product.
Version
);
Microsoft.DotNet.Configurer (4)
AspNetCertificateSentinel.cs (1)
11
public static readonly string SENTINEL = $"{Product.
Version
}.aspNetCertificateSentinel";
DotnetFirstTimeUseConfigurer.cs (1)
58
string productVersion = Product.
Version
;
FirstTimeUseNoticeSentinel.cs (1)
11
public static readonly string SENTINEL = $"{Product.
Version
}.dotnetFirstUseSentinel";
UserLevelCacheWriter.cs (1)
72
return Path.Combine(_dotnetUserProfileFolderPath, $"{Product.
Version
}_{cacheKey}.dotnetUserLevelCache");