Nant version: rc2 0.85.1869.0

Perhaps I am trying to do too much with Nant, but what I am trying to do
is use Nant to setup a developers VC++ environment using the same paths
as used for the automated build.  My plan is to use the VCPlatform
object in the devstudio object model to set the paths that appear in the
Tools->Options->Projects->VC++ Directories dialog.  I know I could just
overwrite vccomponents.dat, but using the API is problably the "right"
way.

Here is what I have so far:

 <target name="DevSetup" depends="Set_EnvVariables">
    <script language="C#" verbose="true">
        <references>
           <include name="EnvDTE.dll"/>
           <include name="C:/Program Files/Microsoft Visual Studio .NET
2003/Common7/IDE/**/Microsoft.VisualStudio.VCProjectEngine.dll"/>
        </references>
        <imports>
           <import namespace="EnvDTE"/>
           <import namespace="Microsoft.VisualStudio.VCProjectEngine"/>
        </imports>
        <code>
          <![CDATA[
           public static void ScriptMain(Project project) 
              {
              }
            ]]>
          </code>
       </script>
    </target>



The error I get is:
Blahblah.cs(16, 49) : error CS0104: 'Project' is ambiguous reference

So I changed the Project in the ScriptMain definition to
Nant.Core.Project but it still didn't help.

I am guessing that there is an unqualified declaration of
Nant.Core.Project elsewhere in the generated .cs file and the compiler
can't decide between Nant.Core.Project and EnvDTE.Project.

Is there any way to keep the generated .cs file around for me to debug
this.





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to