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...
Okumaya devam...

Changing Team Foundation Server SMTP Server and E-mail Notification Settings

      In one of projects that I’m working for; we’ve moved our TFS to new server. Its working quite well, except e-mail notifications       But don’t worry if you have the same problem. Here is the solution; Open Web.config file placed under C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services, then simply change the...
Okumaya devam...

Readonly variables in Php

  One of the coolest thing in php5 stuff is overloading. You can control access to your variable via __call, __get and __set methods. You may also make your variables readonly to other classes as shown below : class SomeClass { /***********************************************************************************/ /* -=Data Members=- */ /***********************************************************************************/ private $variables = array(); private $readOnlyVariables = array();...
Okumaya devam...

Null DTE when VSIP Package is Auto Loaded on Startup

In my VSIP package, I’ve mark with the following attribute to indicade it should load at startup: [ProvideAutoLoad(UIContextGuids.NoSolution)] You can find details about other auto load options on my other post. And then in initialize function I’ve try to get DTE object with the following code . DTE dte = GetService(typeof(DTE)) But DTE is allways...
Okumaya devam...