Exemple #1
0
 public void AddTargets(
     ITarget targetMask1,
     [CallerFilePath] string sourceFilePath  = "",
     [CallerLineNumber] int sourceLineNumber = 0)
 {
     Targets.AddTargets(Util.FormatCallerInfo(sourceFilePath, sourceLineNumber), targetMask1);
 }
Exemple #2
0
 public void AddProject <TPROJECTTYPE>(
     ITarget projectTarget,
     bool inactiveProject = false,
     [CallerFilePath] string sourceFilePath  = "",
     [CallerLineNumber] int sourceLineNumber = 0)
 {
     AddProject(typeof(TPROJECTTYPE), projectTarget, inactiveProject, Util.FormatCallerInfo(sourceFilePath, sourceLineNumber));
 }
Exemple #3
0
 public void AddProject(
     Type projectType,
     ITarget projectTarget,
     bool inactiveProject = false,
     [CallerFilePath] string sourceFilePath  = "",
     [CallerLineNumber] int sourceLineNumber = 0)
 {
     AddProject(projectType, projectTarget, inactiveProject, Util.FormatCallerInfo(sourceFilePath, sourceLineNumber));
 }
            public void SetStartupProject <TPROJECTTYPE>(
                [CallerFilePath] string sourceFilePath  = "",
                [CallerLineNumber] int sourceLineNumber = 0)
            {
                IncludedProjectInfo includedProjectInfo = GetProject(typeof(TPROJECTTYPE));

                if (includedProjectInfo == null)
                {
                    throw new Error(string.Format("{0} error : Can't set project {1} as startup project of solution {2} and target {3} since it is not included in the configuration.",
                                                  Util.FormatCallerInfo(sourceFilePath, sourceLineNumber),
                                                  typeof(TPROJECTTYPE).Name,
                                                  Solution.Name,
                                                  Target));
                }

                StartupProject = includedProjectInfo;
            }