Dear all,
Following build file fails with " 
        Expression: SOFTWARE\Microsoft\VisualStudio\${vs_version}\InstallDir
                                              ^^^^^^^^^^
    Property 'vs_version' has not been set.
"

But if remove 'xmlns="http://nant.sf.net/schemas/nant.xsd";' then it works
without problems.
Why does xmlns changes scope of properties?


-----default.build-----
<project name="SomeName" default="build"
xmlns="http://nant.sf.net/schemas/nant.xsd";>
    <include buildfile="..\\buid_scripts\\settings.inc" />

   <target name="build">
   <readregistry property="__ide.dir" 
        
key="SOFTWARE\Microsoft\VisualStudio\${vs_version}\InstallDir" 
                hive="LocalMachine" />
                
   </target>
</project>
-----settings.inc-----
<project>
<property name="vs_version" value="7.1" overwrite="false"/>
</project>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to