From f7b6780284eef554386f9d9649c0a4f5b82d7ef5 Mon Sep 17 00:00:00 2001 From: Jesús Corrius Date: Thu, 7 Oct 2010 13:44:12 +0200 Subject: Detect the correct .NET Framework for Visual Studio 2008 --- oowintool | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oowintool') diff --git a/oowintool b/oowintool index 8d2e4750d096..c02fc42661c5 100755 --- a/oowintool +++ b/oowintool @@ -249,7 +249,8 @@ 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 "v2\." | head -n 1`; + my $csc_exe = `/bin/find "$dir" -iname csc.exe | grep "v3\.5\." | head -n 1` || + `/bin/find "$dir" -iname csc.exe | grep "v2\." | head -n 1`; print `dirname $csc_exe`; } -- cgit