#305 Solution Task does not properly excludeprojects.

0.85
closed-fixed
Tasks (408)
5
2005-03-06
2005-02-18
J. De Lorme
No

This is a duplicate of a bug (#901232) that was opened
in Feb 2004 which doesn't seem to be resolved in 0.85-
rc1:

Originally Submitted By: Randall Klingelheber
(rklingelheber)

Initial Comment:
When the solution task attempts to load projects, it
does not correctly match the projects read in from the
solution file with the ExcludeProjects fileset. The result,
of course, is that projects are not excluded.

**It does not take into account the fact that paths
read in from the solution file are relative paths and the
FileSet FileNames are full paths.

For example, if your Solution.sln has a relative path such
as this:

Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}")
= "Util", "..\Common\Util\Util.csproj"

and your <solution> task has this:
<excludeprojects>
<include name="..\Common\Util\Util.csproj" />
</excludeprojects>

When run, NAnt tries to do an exact string compare
against:

c:\[project-root]\Common\Util\Util.csproj to:
c:\[project-root]\Solution\..\Common\Util\Util.csproj

and does not exclude it.

Discussion

  • Gert Driesen

    Gert Driesen - 2005-03-06
    • status: open --> closed
     
  • Gert Driesen

    Gert Driesen - 2005-03-06

    Logged In: YES
    user_id=707851

    This is now really fixed in cvs ;-)

     
  • Gert Driesen

    Gert Driesen - 2005-03-06
    • assigned_to: nobody --> drieseng
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks