Ejemplo n.º 1
0
        static void PrepareRuntime()
        {
            var qtVersion      = QmlNetConfig.QtBuildVersion;
            var runtimeTarget  = RuntimeManager.GetCurrentRuntimeTarget();
            var runtimeVersion = qtVersion + "-" + RuntimeTargetToString(runtimeTarget);
            var runtimePath    = Path.Combine
                                 (
                AppContext.BaseDirectory,
                runtimeVersion
                                 );

            if (!Directory.Exists(runtimePath))
            {
                Directory.CreateDirectory(runtimePath);
                RuntimeManager.DownloadRuntimeToDirectory
                (
                    qtVersion,
                    runtimeTarget,
                    runtimePath
                );
            }

            RuntimeManager.ConfigureRuntimeDirectory(runtimePath);
        }