Esempio n. 1
0
        private static string[] GetSkippedTargets()
        {
            if (EnvironmentInfo.ParameterSwitch("nodeps"))
            {
                Logger.Warn(new[]
                {
                    "The 'NoDeps' switch is deprecated.",
                    "Starting with the next version, you can use the 'Skip' parameter to skip all dependencies or only specified ones:",
                    string.Empty,
                    "  Usage: build -skip",
                    "         build -skip Clean+Restore",
                    string.Empty
                }.JoinNewLine());
                return(new string[0]);
            }

            return(null);
        }