gpt4 book ai didi

c# - COSMOS - 操作系统开发 - 错误设置未启动?

转载 作者:行者123 更新时间:2023-11-30 20:49:18 25 4
gpt4 key购买 nike

由于开始更频繁地使用 c#,我决定开始使用 COSMOS 开发工具包。可以找到该项目的链接 here .

但是,我已经阅读了如何在 vs 2013 中使用 COSMOS 的教程。一切都进行得很顺利,直到安装程序给我以下错误: An image showing the error

COSMOS 和其他自设置开发工具包对我来说没有任何用处,即使我完全按照开发人员给出的说明进行操作也是如此!

有谁知道如何解决这个错误?

编辑:我在 Windows 7 SP1 上,我使用 Visual Studio 2013(如果 vs 2013 不够清楚)并且我有所有必需的先决条件正常运行(如果“我遵循开发人员设置的确切说明”是够清楚)。我有一个 64 位版本的 Windows 和 Visual Studio,尽管这看起来令人惊讶,但它们在 64 位机器上运行。请不要因为缺乏信息而对这个问题投反对票——图片和这段是我拥有的关于我的环境和 COSMOS 开发的所有信息和数据。

最佳答案

如果您查看 COSMOS 的源代码 here ,这是当前正在运行的代码:

// This is a hack to avoid the UAC dialog on every run which can be very disturbing if you run
// the dev kit a lot.
Start(@"schtasks.exe", @"/run /tn " + Quoted("CosmosSetup"), true, false);

// Must check for start before stop, else on slow machines we exit quickly because Exit is found before
// it starts.
// Some slow user PCs take around 5 seconds to start up the task...
int xSeconds = 10;
var xTimed = DateTime.Now;
Echo("Waiting " + xSeconds + " seconds for Setup to start.");
if (WaitForStart("CosmosUserKit-" + mReleaseNo, xSeconds * 1000))
{
throw new Exception("Setup did not start.");
}
Echo("Setup is running. " + DateTime.Now.Subtract(xTimed).ToString(@"ss\.fff"));

// Scheduler starts it an exits, but we need to wait for the setup itself to exit before proceding
Echo("Waiting for Setup to complete.");
WaitForExit("CosmosUserKit-" + mReleaseNo);

关键行(和评论)是:

// This is a hack to avoid the UAC dialog on every run which can be very disturbing if you run
// the dev kit a lot.
Start(@"schtasks.exe", @"/run /tn " + Quoted("CosmosSetup"), true, false);

由于某种原因,该程序没有在分配给它的 10 秒内启动,因此它被炸毁了。鉴于相关的评论,我怀疑你的机器上的“黑客攻击”失败了。

schtasks.exeTask Scheduler . /run/tn 标志告诉它立即运行名为 Quoted("CosmosSetup") 的任务。我不知道那个值是什么,但我猜 schtasks.exe 对你来说是失败的,因为你不是管理员。

检查系统上的事件日志是否有任何相关错误。

关于c# - COSMOS - 操作系统开发 - 错误设置未启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23816778/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com