TaskLoggingHelper LogError problem (MSBuild)Hi i'm trying to build my Task vs msbuild and i has next problem<br/> <br/> i run in task class following code<br/> ...<br/>  this.Log.LogError(String.Empty,String.Empty,String.Empty,fileAndPath,lineNum,0,lineNum+1, 0,message,String.Empty);<br/> ...<br/> <br/> in error window i got good entry, but in output window i got Error info in Wrong text format that is why when i double clicked on it i getting exception FileNot Foud (see below)<br/> my output : C:\dev\solution\consolapp\File1.cpp(19,2)Error:  <br/> supposed output : C:\dev\solution\consolapp\File1.cpp(19,2):  error<br/> <br/>© 2009 Microsoft Corporation. All rights reserved.Tue, 07 Jul 2009 10:27:09 Z723f0ea3-e9cc-4089-9114-1a19c412477dhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#723f0ea3-e9cc-4089-9114-1a19c412477dhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#723f0ea3-e9cc-4089-9114-1a19c412477dDima.Zevhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dima.ZevTaskLoggingHelper LogError problem (MSBuild)Hi i'm trying to build my Task vs msbuild and i has next problem<br/> <br/> i run in task class following code<br/> ...<br/>  this.Log.LogError(String.Empty,String.Empty,String.Empty,fileAndPath,lineNum,0,lineNum+1, 0,message,String.Empty);<br/> ...<br/> <br/> in error window i got good entry, but in output window i got Error info in Wrong text format that is why when i double clicked on it i getting exception FileNot Foud (see below)<br/> my output : C:\dev\solution\consolapp\File1.cpp(19,2)Error:  <br/> supposed output : C:\dev\solution\consolapp\File1.cpp(19,2):  error<br/> <br/>Tue, 30 Jun 2009 22:13:55 Z2009-06-30T22:13:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#8c898514-f705-4fc9-8411-0529047dc65fhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#8c898514-f705-4fc9-8411-0529047dc65fNancy Shaohttp://social.msdn.microsoft.com/Profile/en-US/?user=Nancy%20ShaoTaskLoggingHelper LogError problem (MSBuild)<p>Hi,<br/><br/>Have you tired to use <strong>Log.LogError(&quot;Error Message&quot; + fileAndPath +&quot;(&quot;+ lineNum+&quot;,&quot;+ColumnNum + &quot;):&quot;+ ex.Message)</strong> ? Or delete the last <strong>String.Empty</strong> in sentence: <em>this.Log.LogError(String.Empty,String.Empty,String.Empty,fileAndPath,lineNum,0,<strong>lineNum+1</strong>, 0,message,String.Empty);.</em> Maybe the <strong>String.Empty</strong> in last is impact  the format of message string.<br/><br/>Please let me know if it works fine.<br/><br/>Best Regards,<br/>Nancy</p> <hr class=sig> Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/><a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Thu, 02 Jul 2009 09:06:19 Z2009-07-02T09:08:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#a22bdada-f170-40bf-9ea1-2423da8ae92ehttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#a22bdada-f170-40bf-9ea1-2423da8ae92eDima.Zevhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dima.ZevTaskLoggingHelper LogError problem (MSBuild)First Case :<strong>Log.LogError(&quot;Error Message&quot; + fileAndPath +&quot;(&quot;+ lineNum+&quot;,&quot;+ColumnNum + &quot;):&quot;+ ex.Message)<br/> </strong>  bad ,even prints error in  .vstargets file instead of my error message)<strong><br/> <br/> </strong> Second case: <strong>delete the last String.Empty in sentence</strong> <br/>  Still same problem<br/> <br/> _________________________________<br/> May be u know any hook, i mean event or overload any method to costomize output ?<br/> <br/> Thank you.<br/> <br/>Thu, 02 Jul 2009 17:52:46 Z2009-07-02T17:58:11Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#dab6c5af-c65b-4053-9cee-ef53f1e375dbhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/723f0ea3-e9cc-4089-9114-1a19c412477d#dab6c5af-c65b-4053-9cee-ef53f1e375dbNancy Shaohttp://social.msdn.microsoft.com/Profile/en-US/?user=Nancy%20ShaoTaskLoggingHelper LogError problem (MSBuild)Hi Dima,<br/><br/>I have test the code:<br/><br/>Log.LogError(String.Empty,String.Empty,String.Empty,1,2,3,4,message,String.Empty); <br/><br/>It works fine in my side, as the picture shows:<br/><br/><img src="http://qyzuvg.blu.livefilestore.com/y1pIbQwMRKDRsfW2Xh6aWG4ISFZKp0zaen-ARu3rGFpf9cv6kIAEPOShUf4pI6DUvPheaYsG3nPTe4VQQvSe53krnPd46d1iqkm/test.JPG" alt=""><br/><br/>So I can't reproduce your issue, could you please write a simple sample to reproduce this issue, and post here?<br/><br/><br/>Best Regards,<br/>Nancy<br/><br/> <hr class="sig">Please remember to mark the replies as answers if they help and unmark them if they provide no help. <br/> <a href="http://cfx.codeplex.com/">Welcome to the All-In-One Code Framework!</a> If you have any feedback, please tell us.Fri, 03 Jul 2009 08:27:05 Z2009-07-03T08:27:05Z