Browse Source

fixes: Waite Debugger.IsAttached

pull/6972/head
workgroupengineering 5 years ago
committed by GitHub
parent
commit
1d49d007b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

5
src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs

@ -49,9 +49,7 @@ namespace Avalonia.Build.Tasks
internal static CompileResult Compile(IBuildEngine engine, string input, string[] references,
string projectDirectory,
string output, bool verifyIl, MessageImportance logImportance, string strongNameKey, bool patchCom,
bool skipXamlCompilation
, bool debuggerLaunch)
string output, bool verifyIl, MessageImportance logImportance, string strongNameKey, bool patchCom, bool skipXamlCompilation, bool debuggerLaunch)
{
var typeSystem = new CecilTypeSystem(references
.Where(r => !r.ToLowerInvariant().EndsWith("avalonia.build.tasks.dll"))
@ -89,6 +87,7 @@ namespace Avalonia.Build.Tasks
if (debuggerLaunch)
{
System.Diagnostics.Debugger.Launch();
while(!Debugger.IsAttached) Thread.Sleep(100);
}
var asm = typeSystem.TargetAssemblyDefinition;
var emres = new EmbeddedResources(asm);

Loading…
Cancel
Save