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

Respect a path in MSBuildDebugEngine #8080

Closed

Conversation

rainersigwald
Copy link
Member

It's been bothering me that we have to specify both MSBuildDebugEngine=1 and MSBUILDDEBUGPATH=s:\ome\path. Can we do it together?

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

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

I wanted something like this a while ago, though I don't remember if I mentioned it to anyone, so I'm in favor.

We use Environment.GetEnvironmentVariable("MSBUILDDEBUGPATH") directly in two places for CLR2 compatibility. We should add this fallback in those places as well.

Also, before Path.IsPathRooted, we should make sure there are no invalid path characters. Path.IsPathRooted can throw on net framework (or old .net core) if there are.

@rainersigwald
Copy link
Member Author

Not a bad idea but I'm not going to pursue it right now.

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.

2 participants