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