Hi,
Here is the exception (I use NAnt version 0.8.3) caused by the fallowing line:
<solution configuration="Debug" solutionfile="\MySolution\Infrastructure\Utilities\Utilities.sln">
</solution>
I suspect backslashes. However the very same path works fine for
<exec
program="${VS.devenv.path}devenv.exe"
basedir="${MySolution.path}"
commandline= "/build Debug \MySolution\Infrastructure\Utilities\Utilities.sln"
/>
Please advise.
Regards,
Michael Kariv
-----------------------------
INTERNAL ERROR
System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boo
lean needFullPath)
at System.Security.Util.StringExpressionSet.AddExpressions(String[] str, Bool
ean checkForDuplicates, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionA
ccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFul
lPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess
access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.DirectoryInfo..ctor(String path)
at NAnt.VSNet.Tasks.ConfigurationSettings..ctor(ProjectSettings ps, XmlElemen
t elemConfig)
at NAnt.VSNet.Tasks.Project.Load(Solution sln, String strFilename)
at NAnt.VSNet.Tasks.Reference..ctor(Solution sln, ProjectSettings ps, XmlElem
ent elemReference, Task nanttask)
at NAnt.VSNet.Tasks.Project.Load(Solution sln, String strFilename)
at NAnt.VSNet.Tasks.Solution.LoadProjects()
at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd
ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na
nttask)
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
- Re: [nant-dev] <solution> throws exception on path wit... Michael_Kariv
- Re: [nant-dev] <solution> throws exception on pat... Gert Driesen
