public static void SetArguments(IVsHierarchy project, string arguments)
 {
     if (project.IsCpsProject())
     {
         Logger.Info($"Setting arguments on CPS project of type '{project.GetKind()}'.");
         SetCpsProjectArguments(project.GetProject(), arguments);
     }
     else
     {
         ProjectArgumentsHandlers handler;
         if (supportedProjects.TryGetValue(project.GetKind(), out handler))
         {
             handler.SetArguments(project.GetProject(), arguments);
         }
     }
 }
 public static void AddAllArguments(IVsHierarchy project, List <string> allArgs)
 {
     if (project.IsCpsProject())
     {
         Logger.Info($"Reading arguments on CPS project of type '{project.GetKind()}'.");
         GetCpsProjectAllArguments(project.GetProject(), allArgs);
     }
     else
     {
         ProjectArgumentsHandlers handler;
         if (supportedProjects.TryGetValue(project.GetKind(), out handler))
         {
             handler.GetAllArguments(project.GetProject(), allArgs);
         }
     }
 }
Ejemplo n.º 3
0
        public static void SetArguments(IVsHierarchy project, string arguments)
        {
            ProjectArgumentsHandlers handler;

            if (supportedProjects.TryGetValue(project.GetKind(), out handler))
            {
                handler.SetArguments(project.GetProject(), arguments);
            }
        }
Ejemplo n.º 4
0
        public static void AddAllArguments(IVsHierarchy project, List <string> allArgs)
        {
            ProjectArgumentsHandlers handler;

            if (supportedProjects.TryGetValue(project.GetKind(), out handler))
            {
                handler.GetAllArguments(project.GetProject(), allArgs);
            }
        }
Ejemplo n.º 5
0
 public static void SetWorkingDirectory(IVsHierarchy project, string arguments)
 {
     if (project.IsCpsProject())
     {
         Logger.Error("Working dir support not implemented for Cps projects.");
     }
     else
     {
         ProjectArgumentsHandlers handler;
         if (supportedProjects.TryGetValue(project.GetKind(), out handler))
         {
             handler.SetWorkingDirectory(project.GetProject(), arguments);
         }
     }
 }
Ejemplo n.º 6
0
 public static void AddAllWorkingDirectories(IVsHierarchy project, List <string> allWorkingDirs)
 {
     if (project.IsCpsProject())
     {
         Logger.Error("Working dir support not implemented for Cps projects.");
     }
     else
     {
         ProjectArgumentsHandlers handler;
         if (supportedProjects.TryGetValue(project.GetKind(), out handler))
         {
             handler.GetAllWorkingDirectories(project.GetProject(), allWorkingDirs);
         }
     }
 }