Add Executable but don't launch? #6845
Answered
by
davidfowl
davidwallis
asked this question in
Q&A
-
I've added a powershell /pwsh script as a resource, is there a way to prevent this being started/launched until required? var builder = DistributedApplication.CreateBuilder(args);
var apiGateway = builder
.AddProject<Api_Core>("api-core");
builder.AddExecutable("test", "pwsh", ".",
"-ExecutionPolicy", "Bypass",
"-NoProfile",
"-NoLogo",
"-NonInteractive",
"-file",
"..\\..\\test.ps1")
.WithReference(apiGateway)
.WaitFor(apiGateway); |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Dec 1, 2024
Replies: 2 comments
-
Not built-in but https://gist.github.com/davidfowl/d544f054c147c054b5149fd91e47b91c |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
davidfowl
-
Amazing, will give it a try, thank you.
…On Sun, 1 Dec 2024 at 18:40, David Fowler ***@***.***> wrote:
Not built-in but
https://gist.github.com/davidfowl/d544f054c147c054b5149fd91e47b91c
—
Reply to this email directly, view it on GitHub
<#6845 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJWV7RJ5BBZGHBKIB6AO6D2DNJY5AVCNFSM6AAAAABSWXL3VWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBSHE3TMMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not built-in but https://gist.github.com/davidfowl/d544f054c147c054b5149fd91e47b91c