由于开始更频繁地使用c#,我决定开始使用COSMOS开发工具包。指向该项目的链接可以找到这里。
然而,我读过一篇关于如何使用vs 2013的宇宙的教程。在安装程序给我以下错误之前,一切都进行得很顺利:

没有任何东西像宇宙和其他自我设置的开发工具包对我有用,即使我遵循开发人员的确切指示!
有人知道如何修复这个错误吗?
编辑:我在Windows7 SP1上,我使用Visual 2013 (如果vs 2013不够清楚的话),并且我有所有必要的先决条件正常运行(如果‘我遵循开发人员设置的确切指令’不够清楚的话)。我有一个64位版本的Windows和Visual,这看起来很令人惊讶,它运行在一台64位的机器上。请不要投票这个问题,因为缺乏信息-图片和这一段是所有的信息和数据,我有关于我的环境和发展与宇宙。
发布于 2014-05-22 21:29:42
如果您查看COSMOS 这里的源代码,下面是当前正在运行的代码:
// 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.exe是任务调度器。/run和/tn标志告诉它立即运行名为Quoted("CosmosSetup")的任务。我不知道这个值是什么,但我猜schtasks.exe是因为您不是管理员而失败了。
检查系统上的事件日志是否有任何相关错误。
https://stackoverflow.com/questions/23816778
复制相似问题