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