Geeks With Blogs
Sudheer Kumar ASP.Net, C#, BizTalk, MSBuild, WPF, WCF, WF.... October 2007 Entries
Batch File Returning Values to MSBuild
Another MSBuild lesson. You can make batch file return an error code to a MSBuild Task and the custom error codes can be handles as mentioned in the previous post. <Target Name="AfterCompile"> <Exec Command='"C:\Temp\Test.bat"' ContinueOnError='true'> <Output TaskParameter="ExitCode" PropertyName="ErrorCode"/> </Exec> <Message Text="The exit code is $(ErrorCode)"/> <Error Text="Error while executing BAT file" Condition="'$(ErrorCode)' > '0'" /> <OnError ExecuteTargets="MessageErro... ......

Posted On Friday, October 19, 2007 4:30 PM

Handling Custom Error Codes with MSBuild
If you are running an external EXE using the "<Exec" task, then if the EXE is returning a code other than "0" as the success code, then MSBuild still takes it as as failure. <Exec Command='"C:\Some.exe"'> <Output TaskParameter="ExitCode" PropertyName="ErrorCode"/> </Exec> <Message Text="The exit code is $(ErrorCode)"/> The execution does not even come to the "<Message" and it just exits assuming that "-1" is afailure. As a workaround, you can use this method. <Target ......

Posted On Friday, October 19, 2007 3:40 PM

TFS Alerts
I am back to blogging after a vacation..! This time I had an issue with TFS Alert not working properly. You need to make sure that you have done the following setting properly: C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\Web.config <add key="emailNotificationFromA... value="TFSAdmin@Company.com" /> <add key="smtpServer" value="ExchangeServerName" /> Now you need to reset IIS or recycle the pool that "Services" application is linked with. ......

Posted On Saturday, October 13, 2007 12:56 PM

Copyright © Sudheer Kumar | Powered by: GeeksWithBlogs.net