Hi,
I am using a customized logger with the following command line.
MSBuild MyProject.sln /l:MSBuildSimpleLogger.MyMSBuildSimpleLogger,N:
\ArchHistory\MSBuildSimpleLogger.dll;C:\mylog.txt
It builds fine but the log file was not copied out to the specified location.
Only when I run it under the framework\v2.0.50727, the log file was written out.
How can I set the path for logger file
Thanks,

logger output file path problem
Justin_K
Sayed,
It's not a problem with logger dll, otherwise the build will spit an error like: error MSB1021: Cannot create an instance of the logger.
I just couldn't make the logger output to be directed to a give path. I have tried something like logfile=c:\logfolder\mylog.xml, but still doesn't work.
Regards,
New2 .NET
Sayed Ibrahim Hashimi
www.sedodream.com
Marlon
Sorry for the mis-information.
The part of this that is interesting is that you say that it works if you invoke the build from the framework dir. The only thing that I can thik of is this:
You are expecting a property that your logger has called logfile to be initilized from the command line parameter. But the Logger class doesn't do this for you. It does initalize the Parameters property in that class but it is your responsibility to parse that out. See the example on msdn, for how to do this.
The reason why I think this could be it is because it seems like the logfile property in your class is empty, and the log file always gets written to the framework dir, but you only noticed when you executed from there. If this is not the issue can you post some code from your logger class Let me know if this is it.
Sayed Ibrahim Hashimi
www.sedodream.com
Eric66
You were right. The "logfile" is a property that is passed in for the customized logger to parse. Thanks.