mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Attach to debugger is a lot more reliable.
Added system/config ui rss job only runs enabled jobs fixed wrong mappings for indexers in settingscontroller
This commit is contained in:
parent
8ec72ed432
commit
fd32a04d45
9 changed files with 89 additions and 41 deletions
|
@ -10,31 +10,27 @@ using System.Collections.Generic;
|
|||
using System.Runtime.InteropServices;
|
||||
using EnvDTE;
|
||||
using EnvDTE80;
|
||||
using NLog;
|
||||
using Thread = System.Threading.Thread;
|
||||
|
||||
namespace NzbDrone
|
||||
{
|
||||
public class ProcessAttacher
|
||||
{
|
||||
|
||||
private static readonly Logger Logger = LogManager.GetLogger("Application");
|
||||
|
||||
|
||||
public static void Attach()
|
||||
{
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
try
|
||||
{
|
||||
DTE2 dte2;
|
||||
dte2 = (DTE2)Marshal.
|
||||
GetActiveObject("VisualStudio.DTE.10.0");
|
||||
DTE2 dte2;
|
||||
dte2 = (DTE2)Marshal.
|
||||
GetActiveObject("VisualStudio.DTE.10.0");
|
||||
|
||||
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
|
||||
pa.PessimisticAttachManaged();
|
||||
return;
|
||||
|
||||
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
|
||||
pa.PessimisticAttachManaged();
|
||||
return;
|
||||
}
|
||||
catch
|
||||
{
|
||||
Thread.Sleep(500);
|
||||
}
|
||||
}
|
||||
// Get an instance of the currently running Visual Studio IDE.
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue