SDK Package, EnvDTE80.DTE2: The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?Environment Details:<br/>==================<br/>Visual Studio: 2005 (RTM 8.0.50727.42)<br/>.NET Framework: 2.0.50727 SP1<br/>OS: Win 2003<br/>Language: C#<br/><br/><br/>Steps:<br/>==================<br/>1. Using VSPackage implementation, I have added (checked in) the following solution and projects to some SCC provider.<br/><br/>a&gt;<br/><br/>Solution 1<br/>    |<br/>    ---- Project 1<br/><br/>b&gt;<br/><br/>Solution 2<br/>    |<br/>    ---- Project 2<br/><br/><br/>2. Now I have closed the solutions.<br/><br/>3. Created a tool window (SCC Explorer) already, where user can browse the SCC controlled solutions, projects by the SCC provider.<br/><br/>3. From that tool window (SCC Explorer, within VS IDE), opened the first solution (Solution 1).         <br/><br/> <pre lang="x-c#">IVsSolution solutionService = Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; string solutionFile = System.IO.Path.Combine(clientPathSolution, versionName); //e.g. &quot;C:\ABC\Solution 1.sln&quot; uint grfOpenOpts = (uint) __VSSLNOPENOPTIONS.SLNOPENOPT_Silent; solutionService.OpenSolutionFile(grfOpenOpts, solutionFile);</pre> 4. This opens the solution with other project(s) in it. Also, it shows proper glyphs associated with them (managed by some SCC provider).<br/><br/>Solution 1<br/>    |<br/>    ---- Project 1<br/><br/>5. From tool window (SCC Explorer, within VS IDE), selected project 'Project 2' and trying to add the project to the open solution 'Solution 1'.<br/><br/> <pre lang="x-c#">System.Type vsType = System.Type.GetTypeFromProgID(&quot;VisualStudio.DTE.8.0&quot;); Object vs = System.Activator.CreateInstance(vsType, true); EnvDTE80.DTE2 dte8Obj = (EnvDTE80.DTE2)vs; EnvDTE80.Solution2 dteSolution = (EnvDTE80.Solution2)dte8Obj.Solution; ... //Added the project using DTE2 if (dteSolution.IsOpen) { try { //IVsSolution2 solutionService2 = Package.GetGlobalService(typeof(IVsSolution2)) as IVsSolution2; //Question: If I don't want to use DTE2, how do I use any Service (e.g. IVsSolution, IVsSolution2) to perform the same EnvDTE.Project projectAdded = dteSolution.AddFromFile(fileSelected, false); ... //Opening the solution IVsSolution solutionService = Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; uint grfOpenOpts = (uint)__VSSLNOPENOPTIONS.SLNOPENOPT_Silent; solutionService.OpenSolutionFile(grfOpenOpts, solutionFile); </pre> <br/>6. In the following line, I see a warning message getting popped up.<br/><br/>EnvDTE.Project projectAdded = dteSolution.AddFromFile(fileSelected, false);<br/><br/>Message:<br/>The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?      <br/><br/><br/>Questions:   <br/>==============<br/>1. I am using a mix of both VSPackage and DTE/DTE2. So, the incompatibility happens and the warning message is popped up. What information does DTE/DTE2 expect in the solution file to check SCC/SCC provider related information? <br/>Because even though the solution (Solution 1) is managed by SCC provider, DTE API complains that the solution is not managed.<br/><br/>2. I don't want to use DTE/DTE2 at all, instead want to use corresponding service from VSPackage. What are the corresponding services and how do I achieve the things for which I am using DTE?<br/><br/><br/>Where Does the Problem Happen:<br/>========================<br/>Currently it is under development stage, so only in devlopment.<br/><br/><br/>© 2009 Microsoft Corporation. All rights reserved.Wed, 08 Jul 2009 12:43:50 Zb94bd95a-ed3b-467d-ae46-42974341ba76http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#b94bd95a-ed3b-467d-ae46-42974341ba76http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#b94bd95a-ed3b-467d-ae46-42974341ba76subhasis.khatuahttp://social.msdn.microsoft.com/Profile/en-US/?user=subhasis.khatuaSDK Package, EnvDTE80.DTE2: The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?Environment Details:<br/>==================<br/>Visual Studio: 2005 (RTM 8.0.50727.42)<br/>.NET Framework: 2.0.50727 SP1<br/>OS: Win 2003<br/>Language: C#<br/><br/><br/>Steps:<br/>==================<br/>1. Using VSPackage implementation, I have added (checked in) the following solution and projects to some SCC provider.<br/><br/>a&gt;<br/><br/>Solution 1<br/>    |<br/>    ---- Project 1<br/><br/>b&gt;<br/><br/>Solution 2<br/>    |<br/>    ---- Project 2<br/><br/><br/>2. Now I have closed the solutions.<br/><br/>3. Created a tool window (SCC Explorer) already, where user can browse the SCC controlled solutions, projects by the SCC provider.<br/><br/>3. From that tool window (SCC Explorer, within VS IDE), opened the first solution (Solution 1).         <br/><br/> <pre lang="x-c#">IVsSolution solutionService = Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; string solutionFile = System.IO.Path.Combine(clientPathSolution, versionName); //e.g. &quot;C:\ABC\Solution 1.sln&quot; uint grfOpenOpts = (uint) __VSSLNOPENOPTIONS.SLNOPENOPT_Silent; solutionService.OpenSolutionFile(grfOpenOpts, solutionFile);</pre> 4. This opens the solution with other project(s) in it. Also, it shows proper glyphs associated with them (managed by some SCC provider).<br/><br/>Solution 1<br/>    |<br/>    ---- Project 1<br/><br/>5. From tool window (SCC Explorer, within VS IDE), selected project 'Project 2' and trying to add the project to the open solution 'Solution 1'.<br/><br/> <pre lang="x-c#">System.Type vsType = System.Type.GetTypeFromProgID(&quot;VisualStudio.DTE.8.0&quot;); Object vs = System.Activator.CreateInstance(vsType, true); EnvDTE80.DTE2 dte8Obj = (EnvDTE80.DTE2)vs; EnvDTE80.Solution2 dteSolution = (EnvDTE80.Solution2)dte8Obj.Solution; ... //Added the project using DTE2 if (dteSolution.IsOpen) { try { //IVsSolution2 solutionService2 = Package.GetGlobalService(typeof(IVsSolution2)) as IVsSolution2; //Question: If I don't want to use DTE2, how do I use any Service (e.g. IVsSolution, IVsSolution2) to perform the same EnvDTE.Project projectAdded = dteSolution.AddFromFile(fileSelected, false); ... //Opening the solution IVsSolution solutionService = Package.GetGlobalService(typeof(SVsSolution)) as IVsSolution; uint grfOpenOpts = (uint)__VSSLNOPENOPTIONS.SLNOPENOPT_Silent; solutionService.OpenSolutionFile(grfOpenOpts, solutionFile); </pre> <br/>6. In the following line, I see a warning message getting popped up.<br/><br/>EnvDTE.Project projectAdded = dteSolution.AddFromFile(fileSelected, false);<br/><br/>Message:<br/>The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?      <br/><br/><br/>Questions:   <br/>==============<br/>1. I am using a mix of both VSPackage and DTE/DTE2. So, the incompatibility happens and the warning message is popped up. What information does DTE/DTE2 expect in the solution file to check SCC/SCC provider related information? <br/>Because even though the solution (Solution 1) is managed by SCC provider, DTE API complains that the solution is not managed.<br/><br/>2. I don't want to use DTE/DTE2 at all, instead want to use corresponding service from VSPackage. What are the corresponding services and how do I achieve the things for which I am using DTE?<br/><br/><br/>Where Does the Problem Happen:<br/>========================<br/>Currently it is under development stage, so only in devlopment.<br/><br/><br/>Tue, 30 Jun 2009 11:36:57 Z2009-06-30T11:36:57Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#7ec714f0-b891-47b5-8cdd-e20aa4543acbhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#7ec714f0-b891-47b5-8cdd-e20aa4543acbsubhasis.khatuahttp://social.msdn.microsoft.com/Profile/en-US/?user=subhasis.khatuaSDK Package, EnvDTE80.DTE2: The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?This was my first question and there is no response so far. Did I ask some junk question? Can someone please confirm?<br/><br/><strong>I am stuck because of this issue!!!</strong>Thu, 02 Jul 2009 09:28:24 Z2009-07-02T09:28:24Zhttp://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#2da91074-b294-47ff-a222-6b64f48af6c2http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/b94bd95a-ed3b-467d-ae46-42974341ba76#2da91074-b294-47ff-a222-6b64f48af6c2subhasis.khatuahttp://social.msdn.microsoft.com/Profile/en-US/?user=subhasis.khatuaSDK Package, EnvDTE80.DTE2: The source control provider associated with this solution could not be found, The projects will be treated as not under source control. Do you want to permanently remove the source control bindings from the projects?Is this forum operational??Wed, 08 Jul 2009 12:43:49 Z2009-07-08T12:43:49Z