diff options
author | Jesús Corrius <jesus@softcatala.org> | 2010-10-07 13:44:12 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-10-07 14:19:11 +0200 |
commit | 6ed8e1a54994ed98bd00bbd085a82eca013a0419 (patch) | |
tree | d533029b192ec67a0371f35d71368e5d1a61dbe5 /oowintool | |
parent | 11b9b0ffb58da2716434724d76c809722048bfea (diff) |
Detect the correct .NET Framework for Visual Studio 2008
Diffstat (limited to 'oowintool')
-rwxr-xr-x | oowintool | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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`; } |