summaryrefslogtreecommitdiff
path: root/oowintool
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2012-08-12 16:04:56 -0400
committerPeter Foley <pefoley2@verizon.net>2012-08-15 17:59:33 -0400
commit6b0b50e0ec05a6a5279597a3c1158190969e2de0 (patch)
tree5ce85377bd43c426c8d3ac1bd2be9893bb53a32e /oowintool
parentd7c7061fec80bdc3e2fea6bdfc4485c483835ba3 (diff)
Fix build with VS2010
Change-Id: Ic3bbb20c446545d67682a6c547fb69e2255eb0b7
Diffstat (limited to 'oowintool')
-rwxr-xr-xoowintool10
1 files changed, 5 insertions, 5 deletions
diff --git a/oowintool b/oowintool
index c9d74f64d3d8..de929cb026c3 100755
--- a/oowintool
+++ b/oowintool
@@ -200,11 +200,11 @@ sub print_msvs_productdir()
sub print_csc_compiler_dir()
{
- my $dir = cygpath (reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/InstallRoot"), 'w', $output_format);
- my $csc_exe = `/bin/find "$dir" -iname csc.exe | grep "v3\.5\." | head -n 1` ||
- `/bin/find "$dir" -iname csc.exe | grep "v4\." | head -n 1` ||
- `/bin/find "$dir" -iname csc.exe | grep "v2\." | head -n 1`;
- print `dirname $csc_exe`;
+ my $csc_exe =
+ reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/NET Framework Setup/NDP/v4/Client/InstallPath") ||
+ reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/NET Framework Setup/NDP/v3.5/InstallPath") ||
+ reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/InstallRoot") . "v2.0.50727";
+ print cygpath ($csc_exe, 'w', $output_format);
}
sub print_dotnetsdk_dir()