Title: Solution task

I'm a new to nant, I' m trying to use solution task to be able to build  a dotnet project , here is my build file

<project name="MasterBuild" default="build">

<target name="build">
<solution configuration="debug" solutionfile="masterbuild\MasterBuild.sln" >

      <projects>
            <includes name="masterbuild\\MasterBuild.vcproj" />
       </projects>
</solution>

</target>


</project>


Here is the output.


build:

 [solution] Starting solution build.

BUILD FAILED

INTERNAL ERROR

System.IO.IOException: The media is write protected.

   at System.IO.__Error.WinIOError(Int32 errorCode, String str)
   at System.IO.Directory.InternalCreateDirectory(String fullPath, String path)
   at System.IO.Directory.CreateDirectory(String path)
   at NAnt.VSNet.VcConfiguration..ctor(XmlElement elem, VcProject parentProject,
 Solution parentSln, VcConfiguration parent, String outputDir)
   at NAnt.VSNet.VcProject.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 additionalPro
jects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutio
nTask, 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()


Thanks in advance.

Reply via email to