2 implementations of HostIdentifier
Microsoft.TemplateEngine.Edge (1)
DefaultTemplateEngineHost.cs (1)
42public string HostIdentifier { get; }
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
56public string HostIdentifier { get; }
22 references to HostIdentifier
Microsoft.TemplateEngine.Abstractions (1)
ITemplateEngineHost.cs (1)
33/// The primary host template config name is <see cref="HostIdentifier"/>.
Microsoft.TemplateEngine.Cli (4)
Commands\CliPathInfo.cs (4)
17if (string.IsNullOrWhiteSpace(host.HostIdentifier)) 19throw new ArgumentException($"{nameof(host.HostIdentifier)} of {nameof(host)} cannot be null or whitespace.", nameof(host)); 29HostSettingsDir = Path.Combine(GlobalSettingsDir, host.HostIdentifier); 30HostVersionSettingsDir = Path.Combine(GlobalSettingsDir, host.HostIdentifier, host.Version);
Microsoft.TemplateEngine.Edge (15)
Constraints\HostConstraint.cs (2)
37foreach (HostInformation hostInfo in supportedHosts.Where(h => h.HostName.Equals(EnvironmentSettings.Host.HostIdentifier, StringComparison.OrdinalIgnoreCase))) 56string errorMessage = string.Format(LocalizableStrings.HostConstraint_Message_Restricted, EnvironmentSettings.Host.HostIdentifier, EnvironmentSettings.Host.Version, supportedHosts.ToCsvString());
DefaultPathInfo.cs (10)
12/// - host settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>] <br/> 13/// - host version settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.Version"/>]. 28/// Default location: host settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>]. 32/// Default location: host settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.Version"/>]. 108if (string.IsNullOrWhiteSpace(host.HostIdentifier)) 110throw new ArgumentException($"{nameof(host.HostIdentifier)} of {nameof(host)} cannot be null or whitespace.", nameof(host)); 116return Path.Combine(globalDir ?? GetDefaultGlobalSettingsDir(userDir!), host.HostIdentifier); 121if (string.IsNullOrWhiteSpace(host.HostIdentifier)) 123throw new ArgumentException($"{nameof(host.HostIdentifier)} of {nameof(host)} cannot be null or whitespace.", nameof(host)); 133return Path.Combine(globalDir ?? GetDefaultGlobalSettingsDir(userDir!), host.HostIdentifier, host.Version);
EngineEnvironmentSettings.cs (2)
21/// - <see cref="IPathInfo.HostSettingsDir"/> - [<paramref name="settingsLocation"/>]/[<see cref="ITemplateEngineHost.HostIdentifier"/>] <br/> 22/// - <see cref="IPathInfo.HostVersionSettingsDir"/> - [<paramref name="settingsLocation"/>]/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.Version"/>]. <br/>
Settings\TemplateCache.cs (1)
203if (newTemplate.HostConfigFiles.TryGetValue(settings.Host.HostIdentifier, out string? preferredHostFilePath))
Microsoft.TemplateEngine.IDE (2)
Bootstrapper.cs (2)
53string hostSettingsDir = Path.Combine(hostSettingsLocation, host.HostIdentifier); 54string hostVersionSettingsDir = Path.Combine(hostSettingsLocation, host.HostIdentifier, host.Version);