This works for me: remove leading "\"

      <readregistry

            property="sdkRoot"

            key="SOFTWARE\Microsoft\.NETFramework\sdkInstallRoot"

            hive="LocalMachinç"

            failonerror="true"

            verbose="true"/>

      <echo message="got here ${sdkRoot}"/>

 

From: Griffin Caprio <[EMAIL PROTECTED]>
readregistry task  
2003-03-21
12:39

 Can anyone point me to what I am doing wrong here?  I
 am trying to use the <readregistry> task:
 
 <readregistry property="vs.dir"
 key="\SOFTWARE\Microsoft\.NETFramework\sdkInstallRoot"
 hive="LocalMachine" />
 
 This is the error I get:
 BUILD FAILED
 Registry Path Not Found! -
 key='\SOFTWARE\Microsoft\.NETFramework\';hive='Micros
 oft.Win32.RegistryHive[]';
 
 Anyone see what I am doing wrong here?  I am using the
 example right from the Task docs.
 
 -Griffin
 
 
 =====
 Griffin Caprio 
 "Your child against mine.  The winner
 will be hailed, the loser will be booed
 until my throat hurts!" - Homer Simpson to Marge
 
 __________________________________________________
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com
 

 

<<attachment: image001.gif>>

Reply via email to