هر کسی در زندگی شغلی، حرفهای و دانشگاهیاش مرتکب اشتباهاتی شده و دوست دارد به گذشته بازگشته و آنها را اصلاح نماید. من هم از این قاعده مستثنی نبوده و از بدو ورود به دانشگاه تحت هیبت دانشجوی کامپیوتر دچار اشتباهاتی شدهام. از آنجا که گفتهاند گذشته چراغ راه آینده است آنها را اینجا میآورم …
حتماً تا حالا دیدهاید که هر وقت پروژهای را در ویژوال استودیو Build میکنید در کنار فهرست Errorها، فهرستی از Warningها هم نمایش داده میشود. این Warningها مواردی هستند که کامپایلر C# تشخیص داده و برای بررسی بیشتر به شما اعلام میکند. این Warningها شامل مسائلی ساده و معمولی هستند مثل: یک return وسط متود …
I am using “ASP.NET Development Server” with Visual Studio 2010 Ultimate x64 on a Windows Server 2008 R2 x64 machine. Development Server is my primary development and debug my ASP.NET applications. After my work is done, the website moves to an IIS 7.5 on a Windows Server 2008 R2 x64 (same machine) with “DefaultAppPool”. I …
تعدادی زیادی از پروژههای کد باز معروف .Net از روی پروژههای موفق Java ساخته شدهاند. یکی از قشنگترین چیزهایی که در این تقلید رعایت شده، یکسان بودن API هر دو است. یعنی مثلاً اگر پروژهی جاوایی JavaProjABC وجود داشته باشد که شامل سه کلاس C1 و C2 و C3 بوده و کلاس C2 شامل متودی …
Sometimes that you need to customize TFS Build 2010, you need to create a custom CodeActivity. A CodeActivity is written in C# and you can do what you can’t in TFS Build itself, there. The simplest way to create a custom CodeActivity, deploy and use it, is as follow: 1. Create a .Net 4.0 based …
Doing FTP in .Net is not as hard as you may imagine. There is a very simple way and a bit advanced way. Simple way is using System.Net.WebClient class and its UploadFile method. Advanced way includes using System.Net.FtpWebRequest and System.Net.FtpWebResponse classes. Using them you can do ordinary FTP operations like ListDirectory, UploadFile, DeleteFile, etc. For …
If you ever has need to customize build process in Team Foundation Build 2010, you may noticed that there is several ways to do it while each way is suitable for a specific range of requirements: 1. Running external tools like batch files or ftp.exe or MSBuild Community Tasks via InvokeProcess or via MSBuild Activity. …
I’m using log4net for logging in my ASP.NET application. This web site is based on .Net framework 3.5 and is installed on IIS 7.5 and Windows Server 2008 R2 in a 64 bit machine. Logging was working greatly when I was running application from Visual Studio 2010’s internal web server, but was not working at …
It’s a few months that I am dealing with continuous integration, automatic builds, TFS and Team Foundation Build deeply. Experiences during this period learned me some points that I’m glad to share with all: 1. Don’t assume anything about build agent. Specifically don’t assume any library is installed on the agent, any assembly registered in …
In many applications, data change is tracked. For example in TFS whenever you change any section of a work item, you can then see that change has been logged in work item history. It says that, for instance, owner of work item or time estimation field has been changed from a value to another value. …