Title: NANT bug

Hello I forgot all my information on sourceforge and didn’t want to go through setting up a new account, just to post this bug. So here it is.

NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003)

Having to do with the solution Task.

In the resources.cs file as part of the VSNet namespace or what ever.  The outfile gets set to a temp file in the users temp directory.  The .resources file gets generated in that directory and is promptly deleted when Nant finishes.  So the Resources file never gets put in with the build. 

The old line:

outFile = Project.ProjectSettings.GetTemporaryFilename(outFile);

the new code I wrote to somewhat fix the problem for my build process

string outpath = Project.GetOutputPath(_solutionTask.Configuration);

int li = outpath.LastIndexOf("\\") + 1;  //want to keep the last '\'

outpath = outpath.Remove(li, outpath.Length - li);

outFile = outpath + outFile; //Project.ProjectSettings.GetTemporaryFilename(outFile);


enjoy the bug!

 __    __    ___    _____  ______      ___      __

 /  __) \  |   |  /    /  \    (___   ) (___   )

|  /     |  \_/  |    /    \      /  /     /  / 

| |      |   _   |   /  ()  \    /  /     /  /  

|  \__   |  / \  |  |   __   |  /  /__   /  /__ 

_\    )_/  |___|  \_|  (__)  |_(      )_(      )_

Reply via email to