Alexander Karatarakis
a5fe308ea3
$script:MyInvocation.MyCommand.Definition
...
It works also in cases where scripts/functions are calling each other.
Without the $script prefix, it would instead give you the calling function OR the path if there was no parent function.
With the prefix, it always yields the directory of the script
2018-01-23 14:16:06 -08:00
Alexander Karatarakis
fdf7c65aa4
Exit early if no VS is found
2017-11-30 16:43:59 -08:00
Alexander Karatarakis
7eb0095094
Rename $explicitlyRequestedVSPath to $withVSPath
2017-11-09 21:41:16 -08:00
Alexander Karatarakis
7d0bcceaf0
[findVSInstances] Data lines are now placed within <sol><eol> tags. Text outside these tags is ignored
...
This means we can print text in powershell now and it won't break vcpkg.
2017-10-31 17:31:10 -07:00
Alexander Karatarakis
50ae9eec87
Do not depend on newlines when getting output from powershell
2017-10-19 19:57:58 -07:00
Alexander Karatarakis
e3527b23ea
Don't assume VS2015 is in C:\Program Files (x86)\
2017-10-05 22:44:49 -07:00
Alexander Karatarakis
f0c23aeb6b
Completely rework Visual Studio detection
...
- Now using vswhere.exe to detect all VS instance (2015 + 2017)
- Default version preference order is now: stable, prerelease, legacy
- Within each preference weight, the latest one is chosen
- findVisualStudioInstallationInstances.ps1 now has a parameter to choose VS instance
2017-10-05 18:29:34 -07:00
Robert Schumacher
1513062f0b
[vcpkg-scripts] Improve verbose logging in findAnyMSBuildWithCppPlatformToolset.
2017-04-11 14:41:57 -07:00
Alexander Karatarakis
58002f6239
Tweak -Verbose messages
2017-02-24 16:36:10 -08:00
Alexander Karatarakis
c81edf7592
Rewrite MSBuild detection
...
Add -Verbose messages. Look for VS2015 in Program files as well as registry
2017-02-24 16:27:29 -08:00
Alexander Karatarakis
0dbc59da7a
Fix script for powershell in Win7
2017-02-16 20:00:00 -08:00
Robert Schumacher
cf537a2623
[vcpkg] Use the Registry to find VS2015
2017-02-16 19:21:55 -08:00
Alexander Karatarakis
444f28dd24
Add functions to find Program Files folders on the powershell side
2017-02-14 16:53:29 -08:00
Alexander Karatarakis
e6c127511e
[VS2017] Add powershell script to find any MSBuild with C++ support
2017-01-23 12:54:03 -08:00