Title: FW: Compile error

Fyi, I found the problem. My project has a gac reference. It appears that when parsing the projects, the assumption is made if it is in the gac to find it in the framework directory, which is not where this dll is located.

Here is the code that fails.

DirectoryInfo frameworkDirectory = new DirectoryInfo(_solutionTask.Project.CurrentFramework.FrameworkDirectory.FullName);

In Reference.cs. If fails because the file does not exist.

--Glenn

Btw, How do I become a member?



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 20, 2004 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Your message to nant-developers awaits moderator approval
>
>
> Your mail to 'nant-developers' with the subject
>
>     FW: Compile error
>
> Is being held until the list moderator can review it for approval.
>
> The reason it is being held:
>
>     Post by non-member to a members-only list
>
> Either the message will get posted to the list, or you will
> receive notification of the moderator's decision.
>

     -----Original Message-----
    From:   Glenn [mailto:[EMAIL PROTECTED]]
    Sent:   Tuesday, April 20, 2004 12:43 PM
    To:     '[EMAIL PROTECTED]'
    Subject:        FW: Compile error

      I received the following error when running the following .build file.

      <<...>>


      Target(s) specified: CompileEntity
      Build sequence for target `CompileEntity' is CompileEntity
      Complete build sequence is CompileEntity

      CompileEntity:

       [solution] Starting solution build.
       [solution] Loading projects...
       [solution] Loading project 'c:\ss\printstream framework dev\frameworkdev\dll\entities\gl_company\GL_Company.vbproj'.
       [solution] Project: GL_Company Relative Output Path: C:\test\ Output Path: C:\test Documentation Path:
       [solution] Project: GL_Company Relative Output Path: C:\test\ Output Path: C:\test Documentation Path:
       [solution] Cleaning up temp folder C:\DOCUME~1\glennb\LOCALS~1\Temp\6a9vfkcz.

      BUILD FAILED

      INTERNAL ERROR

      System.NullReferenceException: Object reference not set to an instance of an object.
         at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlElement elemReference, SolutionTask solutionTask, String outputDir)

         at NAnt.VSNet.Project.Load(Solution sln, String projectPath)
         at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, String outputDir, String path)

         at NAnt.VSNet.Solution.LoadProjects()
         at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMappings, FileSet excludesProjects, String outputDir)

         at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
         at NAnt.Core.Task.Execute()
         at NAnt.Core.Target.Execute()
         at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
         at NAnt.Core.Project.Execute()
         at NAnt.Core.Project.Run()



      ------
      The command line params passed to nanat were the following

      -D:Entity="GL_Company" -D:EntityModule="BookEstimating" -D:SSDBPath="\\fileserver\data\PrintStream Framework Dev\srcsafe.ini" -D:SSPassword="rasool" -D:SSUser="glennb" -D:EntitiesXmlPath="C:\SS\PrintStream Framework Dev\FrameworkDev\XML\Entities" -D:Company="Streamline" -D:EntitiesSourcePath="C:\SS\PrintStream Framework Dev\FrameworkDev\DLL\Entities" -D:SSEntitiesPath="$/FrameworkDev/DLL/Entities" -D:SSEntitiesXmlPath="$/FrameworkDev/XML/Entities" -D:ReplaceFiles="true" -D:Config="Debug" -D:OutputDir="C:\test"

      There are extra variables passed because this build is running from a generic plugin architecture.

      The project (C:\SS\PrintStream Framework Dev\FrameworkDev\DLL\Entities\GL_Company\GL_Company.vbproj) exists, and does compile within the ide.




Attachment: ExecutePlugin.build
Description: Binary data

Reply via email to