Monday, August 31, 2015

Powershell script to upload files recursively to FTP server

Uploading the files recursively here "D:\test" is source folder and destination is FTP server $ftp_uri = "ftp://demo.azurewebsites.windows.net/" $user = "domain\username" $pass = "Password" $path= "D;\test" $webclient = New-Object System.Net.WebClient $webclient.Credentials = New-Object System.Net.NetworkCredential($user,$pass)...

Sunday, August 30, 2015

Create custom code analysis rule using FxCop and use it in visual studio 2013

1. Create a class library project in visual studio 2. Add the references FxCopSdk.dll and Microsoft.Cci.dll. The dll location is "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop" 3. Create the XML file and name it as RuleMetadata.xml ...

Tuesday, August 04, 2015

TFS Build Failed for Exception Message: TF270015 Or TF42097

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ...