Visual Studio 11 - Start options/Command line arguments - by Svein Blad

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 736167 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 4/10/2012 1:06:22 AM
Access Restriction Public


The command line arguments specified in the Start options of the startup project in a solution are not visible trough Environment.GetCommandLineArgs( )
Sign in to post a comment.
Posted by Microsoft on 4/13/2012 at 2:23 PM
Thanks for your feedback. The hosting process is a performance optimization for debugging start. Sometimes it can cause issues, and in cases like this we recommend disabling it.
Posted by Svein Blad on 4/11/2012 at 12:31 AM

I've found out that this bug only applies to my project if I enable the Visual Studio hosting process.

When unchecking this option, the Environment.GetCommandLineArgs( ) yields the correct result.

Svein Blad
Posted by MS-Moderator10 [Feedback Moderator] on 4/10/2012 at 4:14 AM
Hi Svein,

Thanks for your feedback. But we are unable to reproduce the issue with the steps you provided. Could you please give us a demo project and some screenshots to help us reproduce this scenario?

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator01 on 4/10/2012 at 3:48 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(