Beispiel #1
0
 void WriteStartupLogs()
 {
     var appVersion = this.GetType().Assembly.GetName().Version;
     Wu10Logger.LogInfo($"Application version: v{appVersion.ToString()}");
     Wu10Logger.LogInfo(EnvironmentVersionHelper.GetWindowsVersion());
     Wu10Logger.LogInfo($".Net Framework: {EnvironmentVersionHelper.GetDotNetFrameworkBuild()}");
 }
Beispiel #2
0
        private void WriteStartupLogs()
        {
            var appVersion = GetType().Assembly.GetName().Version;

            _logWriter.LogInfo($"Application version: v{appVersion}");

            var registryEditor = DependencyManager.Resolve <IRegistryEditor>();

            _logWriter.LogInfo(EnvironmentVersionHelper.GetWindowsVersion(registryEditor));
            _logWriter.LogInfo($".Net Framework: {EnvironmentVersionHelper.GetDotNetFrameworkBuild(registryEditor)}");
        }