I created the application in Windows Forms that checks, if it contains specific command line arguments and acts accordingly.
Now I would like to test/debug my code with different command lines arguments.
I entered command line arguments by clicking on my project and choosing Properties/Debug. But when I start the debugging, I receive following message
The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments will not be passed to the executable.
In Properties/Security, "This is full trust application" is selected, so I am not sure why it is complaining.
You have setup ClickOnce publishing for this project, which adds a security restriction preventing command line parameters from being processed.
To remove the security restriction:
Go to the project properties Security tab and do this:
(Forum post "command line arguments will not be passed" message.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With