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

Support temp folders not located on system drive #974

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

Carsten87
Copy link
Contributor

@Carsten87 Carsten87 commented Dec 17, 2019

This changes CMake: Scan for Kits

The following changes are proposed:

  • Switch back to the folder from which "devbat" was called after calling it

The purpose of this change

If you do not change back to "%~dp0" after calling "devbat" and your temp directory is on another drive as your Visual Studio installation the corresponding ".env" file will not be created next to "devbat" but in the user's home directory. This causes the Visual Studio 2017 Kits to not be found.

Occured with:

  • VS2017 15.5.3
  • temp directory on drive D:
  • CMake Tools 1.2.3

Other Notes/Information

I hope the information provided by me is sufficient. This is my first pull request here :)

Edit: I did some more investigation. Seems like the proposed fix is a workaround for issues like
https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
https://developercommunity.visualstudio.com/content/problem/134471/vcvarsallbat-changes-current-directory.html

@bobbrow
Copy link
Member

bobbrow commented Dec 23, 2019

Thank you for this.

@bobbrow bobbrow merged commit 1cfc884 into microsoft:develop Dec 23, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants