Passing command line args to a console application #7605
Unanswered
rob-king-volpara
asked this question in
Q&A
Replies: 2 comments 1 reply
-
As a test, I added a new .Net 8 console app to the host and accepts the arguments fine so it must be a Framework thing. E.g. ConsoleApp2 is .Net 8 and ConsoleApp3 is .Net Framework |
Beta Was this translation helpful? Give feedback.
0 replies
-
In visual studio? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a couple of older .Net Framework 4.8 console apps that we want to run when the Aspire host starts up. Both apps accept command line parameters e.g.
command.exe -e true -a true
When I add the projects to the host and set the
builder.AddProject<DatabaseApp>("db").WithArgs("-e", "true")
parameters, they don't get passed to the console app throughstatic void Main(string[] args)
Am I missing how arguments are used in this way?
Beta Was this translation helpful? Give feedback.
All reactions