Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: execute using configured console #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Atrejoe
Copy link

@Atrejoe Atrejoe commented Oct 10, 2019

Assumes %file% has been configured in console
This needs some cleaning up I think.
co-authored-by: @Aaltuj

Comment on lines -79 to +88
StartProcess(folder, "cmd.exe", "/k \"" + Path.GetFileName(path) + "\"");
var options = GetDialogPage(typeof(Options)) as Options;
string arguments = (options.Arguments ?? string.Empty).Replace("%folder%", folder);

string confName = VsHelpers.GetSolutionConfigurationName(_dte);
arguments = arguments.Replace("%configuration%", confName);

string confPlatform = VsHelpers.GetSolutionConfigurationPlatformName(_dte);
arguments = arguments.Replace("%platform%", confPlatform);

arguments = arguments.Replace("%file%", Path.GetFileName(path));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be refactored to be more reusable

@@ -102,6 +113,8 @@ private void OpenCustom(object sender, EventArgs e)
string confPlatform = VsHelpers.GetSolutionConfigurationPlatformName(_dte);
arguments = arguments.Replace("%platform%", confPlatform);

arguments = arguments.Replace("%file%", string.Empty);
Copy link
Author

@Atrejoe Atrejoe Oct 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any configure %file% parameter need to be remove when just opening the console

Assumes %file% has been configured in console
This needs some cleaning up I think.
co-authored-by: @Aaltuj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant