2 implementations of Version
Microsoft.TemplateEngine.Edge (1)
DefaultTemplateEngineHost.cs (1)
48
public string
Version
{ get; }
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
60
public string
Version
{ get; }
13 references to Version
Microsoft.TemplateEngine.Cli (3)
Commands\CliPathInfo.cs (3)
22
if (string.IsNullOrWhiteSpace(host.
Version
))
24
throw new ArgumentException($"{nameof(host.
Version
)} of {nameof(host)} cannot be null or whitespace.", nameof(host));
30
HostVersionSettingsDir = Path.Combine(GlobalSettingsDir, host.HostIdentifier, host.
Version
);
Microsoft.TemplateEngine.Edge (9)
Constraints\HostConstraint.cs (3)
40
if (hostInfo.Version == null || hostInfo.Version.CheckIfVersionIsValid(EnvironmentSettings.Host.
Version
))
50
if (hostInfo.Version == null || hostInfo.Version.CheckIfVersionIsValid(EnvironmentSettings.Host.
Version
))
56
string errorMessage = string.Format(LocalizableStrings.HostConstraint_Message_Restricted, EnvironmentSettings.Host.HostIdentifier, EnvironmentSettings.Host.
Version
, supportedHosts.ToCsvString());
DefaultPathInfo.cs (5)
13
/// - host version settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.
Version
"/>].
32
/// Default location: host settings: [user profile directory]/.templateengine/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.
Version
"/>].
125
if (string.IsNullOrWhiteSpace(host.
Version
))
127
throw new ArgumentException($"{nameof(host.
Version
)} of {nameof(host)} cannot be null or whitespace.", nameof(host));
133
return Path.Combine(globalDir ?? GetDefaultGlobalSettingsDir(userDir!), host.HostIdentifier, host.
Version
);
EngineEnvironmentSettings.cs (1)
22
/// - <see cref="IPathInfo.HostVersionSettingsDir"/> - [<paramref name="settingsLocation"/>]/[<see cref="ITemplateEngineHost.HostIdentifier"/>]/[<see cref="ITemplateEngineHost.
Version
"/>]. <br/>
Microsoft.TemplateEngine.IDE (1)
Bootstrapper.cs (1)
54
string hostVersionSettingsDir = Path.Combine(hostSettingsLocation, host.HostIdentifier, host.
Version
);