Visual Studio : The current project settings specify that the project will be debugged with specific security …


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.

SOLUTION

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:

  • Open Project Properties
  • Go to the Security tab
  • Unchecked the “Enable ClickOnce Security Settings”