I attached a sample project that produces the error. The link attribute can
be used for embedded resources aswell.
Example:
                    <File
                    RelPath = "GlobalAssemblyInfo.cs"
                    Link = "..\..\GlobalAssemblyInfo.cs"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
Error:
C:\temp\nantbug>"C:\Program Files\nant\bin\nant.exe" nantbug.build
NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/temp/nantbug/nantbug.build
 [solution] Starting solution build.
 [solution] Building LinkToFileBug [Debug]...
Total time: 0 seconds.

BUILD FAILED

INTERNAL ERROR

System.IO.IOException: Could not find a part of the path
"C:\temp\nantbug\linkto
filebug\LinkToFileBug\GlobalAssemblyInfo.cs".
   at System.IO.File.GetLastWriteTime(String path)
   at NAnt.VSNet.Tasks.Project.CheckUpToDate(ConfigurationSettings cs)
   at NAnt.VSNet.Tasks.Project.Compile(String strConfiguration, ArrayList
alCSCA
rguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.Solution.Compile(String strConfiguration, ArrayList
alCSC
Arguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

Regards
Martin Webrant
TAC AB

Attachment: nantbugproject.zip
Description: Binary data

Reply via email to