2 implementations of Version
Microsoft.TemplateEngine.Edge (1)
DefaultTemplateEngineHost.cs (1)
48public string Version { get; }
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
60public string Version { get; }
13 references to Version
Microsoft.TemplateEngine.Cli (3)
Commands\CliPathInfo.cs (3)
22if (string.IsNullOrWhiteSpace(host.Version)) 24throw new ArgumentException($"{nameof(host.Version)} of {nameof(host)} cannot be null or whitespace.", nameof(host)); 30HostVersionSettingsDir = Path.Combine(GlobalSettingsDir, host.HostIdentifier, host.Version);
Microsoft.TemplateEngine.Edge (9)
Constraints\HostConstraint.cs (3)
40if (hostInfo.Version == null || hostInfo.Version.CheckIfVersionIsValid(EnvironmentSettings.Host.Version)) 50if (hostInfo.Version == null || hostInfo.Version.CheckIfVersionIsValid(EnvironmentSettings.Host.Version)) 56string 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"/>]. 125if (string.IsNullOrWhiteSpace(host.Version)) 127throw new ArgumentException($"{nameof(host.Version)} of {nameof(host)} cannot be null or whitespace.", nameof(host)); 133return 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)
54string hostVersionSettingsDir = Path.Combine(hostSettingsLocation, host.HostIdentifier, host.Version);