Visual Studio delay between multiple startup projects?

前端 未结 9 1430
暖寄归人
暖寄归人 2021-02-06 23:31

how to add some delay between startup projects in solution?

\"enter

I want Client

9条回答
  •  甜味超标
    2021-02-07 00:04

    Another simpler option for testing is to just delay the client if the debugger is attached like this:

    if (System.Diagnostics.Debugger.IsAttached)
    {
        System.Threading.Thread.Sleep(2000);
    }
    

    You might wrap that in an #if DEBUG block if you like. Anyway I think this should be the least amount of work :)

提交回复
热议问题