2 implementations of HostIdentifier
Microsoft.TemplateEngine.Edge (1)
DefaultTemplateEngineHost.cs (1)
42
public string
HostIdentifier
{ get; }
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
56
public 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)
17
if (string.IsNullOrWhiteSpace(host.
HostIdentifier
))
19
throw new ArgumentException($"{nameof(host.
HostIdentifier
)} of {nameof(host)} cannot be null or whitespace.", nameof(host));
29
HostSettingsDir = Path.Combine(GlobalSettingsDir, host.
HostIdentifier
);
30
HostVersionSettingsDir = Path.Combine(GlobalSettingsDir, host.
HostIdentifier
, host.Version);
Microsoft.TemplateEngine.Edge (15)
Constraints\HostConstraint.cs (2)
37
foreach (HostInformation hostInfo in supportedHosts.Where(h => h.HostName.Equals(EnvironmentSettings.Host.
HostIdentifier
, StringComparison.OrdinalIgnoreCase)))
56
string 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"/>].
108
if (string.IsNullOrWhiteSpace(host.
HostIdentifier
))
110
throw new ArgumentException($"{nameof(host.
HostIdentifier
)} of {nameof(host)} cannot be null or whitespace.", nameof(host));
116
return Path.Combine(globalDir ?? GetDefaultGlobalSettingsDir(userDir!), host.
HostIdentifier
);
121
if (string.IsNullOrWhiteSpace(host.
HostIdentifier
))
123
throw new ArgumentException($"{nameof(host.
HostIdentifier
)} of {nameof(host)} cannot be null or whitespace.", nameof(host));
133
return 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)
203
if (newTemplate.HostConfigFiles.TryGetValue(settings.Host.
HostIdentifier
, out string? preferredHostFilePath))
Microsoft.TemplateEngine.IDE (2)
Bootstrapper.cs (2)
53
string hostSettingsDir = Path.Combine(hostSettingsLocation, host.
HostIdentifier
);
54
string hostVersionSettingsDir = Path.Combine(hostSettingsLocation, host.
HostIdentifier
, host.Version);