1 write to PackageIdentifier
Microsoft.TemplateEngine.Abstractions (1)
Installer\InstallRequest.cs (1)
17PackageIdentifier = identifier;
30 references to PackageIdentifier
Microsoft.TemplateEngine.Abstractions (2)
Installer\InstallRequest.cs (2)
27public string DisplayName => string.IsNullOrWhiteSpace(Version) ? PackageIdentifier : $"{PackageIdentifier}@{Version}";
Microsoft.TemplateEngine.Cli (3)
TemplatePackageCoordinator.cs (3)
234if (identifiers.Add(installRequest.PackageIdentifier)) 238Reporter.Error.WriteLine(LocalizableStrings.TemplatePackageCoordinator_Install_Error_SameInstallRequests, installRequest.PackageIdentifier); 618var foundPackage = unmanagedTemplatePackages.FirstOrDefault(package => string.Equals(package.Id, installRequest.PackageIdentifier, StringComparison.OrdinalIgnoreCase));
Microsoft.TemplateEngine.Edge (25)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (6)
140string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageCannotBeInstalled, installRequest.PackageIdentifier), 148string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_MultipleInstallersCanBeUsed, installRequest.PackageIdentifier), 312installRequest.PackageIdentifier, 343if (!x.PackageIdentifier.Equals(y.PackageIdentifier, StringComparison.OrdinalIgnoreCase)) 363return new { a = obj.InstallerName?.ToLowerInvariant(), b = obj.PackageIdentifier.ToLowerInvariant() }.GetHashCode();
Installers\Folder\FolderInstaller.cs (4)
26return Task.FromResult(_settings.Host.FileSystem.DirectoryExists(installationRequest.PackageIdentifier)); 52if (_settings.Host.FileSystem.DirectoryExists(installRequest.PackageIdentifier)) 58new FolderManagedTemplatePackage(_settings, this, provider, installRequest.PackageIdentifier, DateTime.UtcNow), 67string.Format(LocalizableStrings.FolderInstaller_InstallResult_Error_FolderDoesNotExist, installRequest.PackageIdentifier),
Installers\NuGet\NuGetInstaller.cs (15)
67ReadPackageInformation(installationRequest.PackageIdentifier); 71_logger.LogDebug($"{installationRequest.PackageIdentifier} is not a local NuGet package."); 74bool validPackageId = PackageIdValidator.IsValidPackageId(installationRequest.PackageIdentifier); 79_logger.LogDebug($"{installationRequest.PackageIdentifier} is not a valid NuGet package ID."); 93_logger.LogDebug($"{installationRequest.PackageIdentifier} is identified as the local NuGet package."); 229installRequest.PackageIdentifier, 391return _environmentSettings.Host.FileSystem.FileExists(installRequest.PackageIdentifier); 401packageInfo = ReadPackageInformation(installRequest.PackageIdentifier); 405_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FailedToReadPackage, installRequest.PackageIdentifier)); 407throw new InvalidNuGetPackageException(installRequest.PackageIdentifier, ex); 412_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation)); 414throw new DownloadException(packageInfo.PackageIdentifier, packageInfo.PackageVersion, installRequest.PackageIdentifier); 418_environmentSettings.Host.FileSystem.FileCopy(installRequest.PackageIdentifier, targetPackageLocation, overwrite: installRequest.Force); 423_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_CopyFailed, installRequest.PackageIdentifier, targetPackageLocation), null, 0); 425throw new DownloadException(packageInfo.PackageIdentifier, packageInfo.PackageVersion, installRequest.PackageIdentifier);