Tag Archives: C#

Reflection and Dynamic Assemblies

Within one of my applications, I need to analyze loaded assemblies for a specific attribute. To do so I’ve write the following code : foreach (System.Reflection.Assembly assembly in System.AppDomain.CurrentDomain.GetAssemblies()) { //Do something with the assembly } But I got System.NotSupportedException exception when I’ve execute that code. After a little serach through internet, I found the [...]

Read more

Connecting to TFS with Different User

I’ve decide to develop applications for Team Foundation Server. To do so, I’ve install a virtual machine with  TFS running on Windows Server 2003 R2. Since TFS installed on a virtual machine, I did not set a Domain Controller. Then I’ve start to code my applicaiton on my “real” machine running Windows Xp Sp2. But [...]

Read more

Visual Studio 2005 Deneysel kayıt Kütüğünü Sıfırlamak

  Visual Studio 2005′e VSIP ile eklenti yazıyorsanız ve bir şeyler yolunda gitmediyse (ki olması muhtemeldir) endişelenmenize gerek yok.VSIP ile Visual Studio’ya eklenti yazarken sizi Exp uzantılı ayrı bir kayıt kütüğünde çalıştırır, bu sayede eklentiden kaynaklanabilecek olası problemler geliştirme ortamınızı etkilemeyecektir. Visual Studio’yu ilgili kayıt bloğunda çalıştırmak için tek yapmanız gereken "devenv /rootsuffix Exp"; bu [...]

Read more

Çağıran Yöntemin İzinde

   C# ile kod yazıyor ve yönteminizi kimin tarafından çağırıldığını bilmek istiyorsanız, System.Diagnostics namespace’i (isimuzayı) altında bulabileceğiniz StackTrace sınıfı tam aradığınız şey olacak!     Bu sınıfın yöntemlerine göz atacak olursanız GetFrame yöntemi ile Satır, sütun numarası, dosya adı, yöntem adı gibi sizi çağıran yöntem hakkında detaylı bilgilere ulaşabilirsiniz. Alabileceğiniz bu bilgiler içinde tahminimce işinize en [...]

Read more
Quick Open Add-in for Visual Studio

Quick Open Add-in for Visual Studio

Introduction While working on a project, I don’t like to use the mouse very often. But some tasks like opening a project file in Visual Studio need to use the mouse. So I decided to implement an add-in that doesn’t need any mouse strokes (but is optional) and assigns a shortcut "Ctrl+Shift+Alt+N". Here is my [...]

Read more
Page 6 of 6« First...23456
QR Code Business Card