49 references to Product
dotnet (28)
CliSchema.cs (1)
114
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\CSharpCompilerCommand.cs (1)
53
internal static string TargetFrameworkVersion =>
Product
.TargetFrameworkVersion;
Commands\Run\RunCommand.cs (1)
732
Product
.TargetFrameworkVersion,
Commands\Run\VirtualProjectBuildingCommand.cs (3)
85
public static string TargetFrameworkVersion =>
Product
.TargetFrameworkVersion;
86
public static string TargetFramework => $"net{
Product
.TargetFrameworkVersion}";
790
SdkVersion =
Product
.Version,
Commands\Sdk\Check\SdkCheckCommand.cs (1)
34
var configFilePath = Path.Combine(_dotnetPath, "sdk", dotnetVersion ??
Product
.Version, "sdk-check-config.json");
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
572
Product
.TargetFrameworkVersion,
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 (2)
9
using Product = Microsoft.DotNet.Cli.Utils.
Product
;
34
result.SdkVersion = new ReleaseVersion(
Product
.Version);
Commands\Workload\WorkloadInfoHelper.cs (3)
15
using Product = Microsoft.DotNet.Cli.Utils.
Product
;
46
ReleaseVersion currentSdkReleaseVersion = new(currentSdkVersion ??
Product
.Version);
232
reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(
Product
.Version), dotnetPath).ToString(),align}"
Commands\Workload\WorkloadInstallDetector.cs (1)
37
var sdkFeatureBand = new SdkFeatureBand(
Product
.Version);
FirstRunExperience.cs (1)
40
private static readonly string s_toolPathSentinelFileName = $"{
Product
.Version}.toolpath.sentinel";
ParserOptionActions.cs (2)
128
Reporter.Output.WriteLine(
Product
.Version);
150
Reporter.Output.WriteLine($" Version: {
Product
.Version}");
Telemetry\TelemetryClient.cs (2)
106
.ConfigureResource(r => { r.AddService("dotnet-cli", serviceVersion:
Product
.Version); })
116
.ConfigureResource(r => { r.AddService("dotnet-cli", serviceVersion:
Product
.Version); })
Telemetry\TelemetryCommonProperties.cs (1)
64
{ ProductVersion,
Product
.Version },
dotnet-aot (12)
src\sdk\src\Cli\dotnet\CliSchema.cs (1)
114
version:
Product
.Version,
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (1)
34
var configFilePath = Path.Combine(_dotnetPath, "sdk", dotnetVersion ??
Product
.Version, "sdk-check-config.json");
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInfoHelper.cs (3)
15
using Product = Microsoft.DotNet.Cli.Utils.
Product
;
46
ReleaseVersion currentSdkReleaseVersion = new(currentSdkVersion ??
Product
.Version);
232
reporter.WriteLine($" {WorkloadInstallType.GetWorkloadInstallType(new SdkFeatureBand(
Product
.Version), dotnetPath).ToString(),align}"
src\sdk\src\Cli\dotnet\Commands\Workload\WorkloadInstallDetector.cs (1)
37
var sdkFeatureBand = new SdkFeatureBand(
Product
.Version);
src\sdk\src\Cli\dotnet\FirstRunExperience.cs (1)
40
private static readonly string s_toolPathSentinelFileName = $"{
Product
.Version}.toolpath.sentinel";
src\sdk\src\Cli\dotnet\ParserOptionActions.cs (2)
128
Reporter.Output.WriteLine(
Product
.Version);
150
Reporter.Output.WriteLine($" Version: {
Product
.Version}");
src\sdk\src\Cli\dotnet\Telemetry\TelemetryClient.cs (2)
106
.ConfigureResource(r => { r.AddService("dotnet-cli", serviceVersion:
Product
.Version); })
116
.ConfigureResource(r => { r.AddService("dotnet-cli", serviceVersion:
Product
.Version); })
src\sdk\src\Cli\dotnet\Telemetry\TelemetryCommonProperties.cs (1)
64
{ ProductVersion,
Product
.Version },
Microsoft.DotNet.Cli.CoreUtils (1)
Product.cs (1)
19
?? typeof(
Product
).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
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");