尝试重构代码但出现运行时错误

时间:2019-01-14 21:52:04

标签: c# visual-studio

我正在尝试重构下面的代码,以提高UpdateSites()的性能。 GetNewSite()大约需要500毫秒,并且UpdateSites()将处理多个站点。我的想法是并行运行提取。当我测试解决方案时,Visual Studio会给我错误:

new File(project(':gui').buildDir, 'libraries')

使用原始代码运行程序不会触发错误。我的重构工作做得不好吗?

Visual Studio Just-In-Time Debugger
An unhandled Microsoft .NET Framework exception occurred in w3wp.exe [3656]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.

0 个答案:

没有答案