未验证 提交 201260ce 编写于 作者: C Cheryl Borley 提交者: GitHub

Merge pull request #24614 from chborl/failedbuildcommandline

Fix command line build error
......@@ -32,7 +32,7 @@ internal static ForegroundThreadData CreateDefault(ForegroundThreadDataKind defa
{
var kind = ForegroundThreadDataInfo.CreateDefault(defaultKind);
return new ForegroundThreadData(Thread.CurrentThread, new SynchronizationContextTaskScheduler(SynchronizationContext.Current), kind);
return new ForegroundThreadData(Thread.CurrentThread, SynchronizationContext.Current == null ? TaskScheduler.Default : new SynchronizationContextTaskScheduler(SynchronizationContext.Current), kind);
}
}
......
......@@ -38,7 +38,7 @@ static void Main(string[] args)
// TODO: Validate build works as expected
}
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/18299"), Trait(Traits.Feature, Traits.Features.Build)]
[Fact, Trait(Traits.Feature, Traits.Features.Build)]
public void BuildWithCommandLine()
{
VisualStudio.SolutionExplorer.SaveAll();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册