Visual Studio Developer Center > Visual Studio Forums > Visual Studio Guidance Automation Toolkit > Adding a solution to source control during CreateSolution Recipe
Ask a questionAsk a question
 

QuestionAdding a solution to source control during CreateSolution Recipe

  • Monday, September 14, 2009 3:08 PMSteve Eadie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I'm trying to add my full solution structure to source contro during Solution Creationl, however I'm running into one slight problem, because CreateSolution has not finished the .sln file is not in the folder structure on disk, so when I try to do my PendAdd using the root as my location I get a null reference error.

    However if I point PendAdd to one of the solution folders which contain generated projects then they get added to TFS  (So I get a couple of Solution Folders added but no .sln file..... I know the easy solution is to click the Add to Source Control check box when the new project menu is first displayed but that is not what my client wants...... any ideas?

    cheers

    Steve