Hi All,
I am trying to write a Source Control Package using C#. I have been taking help from the sample code that comes with SDK 2005 documentation. The sample code 'SccPkg' has been written in C++. Furthermore, this sample code implements interface IPackage.
I created my package by using the wizard to create extensibility package. I did not have to implement IPackage. Then I added my own toolbar and menus. I also implemented the interfaces IVsQueryEditQuerySave2, IVsSccManager2,IVsSccProvider,IVsSccManagerTooltip,IVsPersistSolutionProps. I created the registry entries as described in the SDK documentation and Smaple package(Creating a Source Control Package). When I launch the DevEnv Hive, I can see my package under Tools->Options->Source Control. The problem I am running into is that I can not choose my package from this list. I tried to debug it and I found that on selecting my package from the list, the package function 'Initialize()' is called.
I can successfully pick 'Versioning Integration Sample', but not my package. Would anybody have any ideas about what I might be doing wrong
Please ignore my replay to the thread -"Associating a solution with an SCC provider".
Thanks a lot

Unable to pick my sc package from tools-options-source control
ksilhol
Thanks all.
I was able to figure this out. I was trying different ways to proffer the source control service from Initialize() function of my package. The one which worked for me was:
IServiceContainer
serviceContainer = this as IServiceContainer;serviceContainer.AddService(typeof(SID_MyService), this,true);
Thanks