Ejemplo n.º 1
0
        /// <summary>
        /// Gets the command line action string to be executed by devenv
        /// </summary>
        /// <param name="action">The action to be executed by devenv</param>
        /// <returns>The command line option for the corresponding action</returns>
        private static string GetActionCommandLineOption(VSDevEnvAction action)
        {
            switch (action)
            {
            case VSDevEnvAction.Build: return("/Build");

            case VSDevEnvAction.Rebuild: return("/Rebuild");

            case VSDevEnvAction.Clean: return("/Clean");

            case VSDevEnvAction.Deploy: return("/Deploy");

            default: throw new ArgumentException("Unknown action " + action);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the command line action string to be executed by devenv
        /// </summary>
        /// <param name="action">The action to be executed by devenv</param>
        /// <returns>The command line option for the corresponding action</returns>
        private static string GetActionCommandLineOption(VSDevEnvAction action)
        {
            switch (action)
            {
                case VSDevEnvAction.Build: return "/Build";
                case VSDevEnvAction.Rebuild: return "/Rebuild";
                case VSDevEnvAction.Clean: return "/Clean";
                case VSDevEnvAction.Deploy: return "/Deploy";

                default: throw new ArgumentException("Unknown action " + action);
            }
        }