How to suppress all warnings using MSBuild

后端 未结 4 1201
悲&欢浪女
悲&欢浪女 2020-12-10 01:10

How would I suppress all warnings (or at least as many as possible since those prefixed with MSB cannot be suppressed How to suppress specific MSBuild warning)?

4条回答
  •  情话喂你
    2020-12-10 01:34

    msbuild /clp:ErrorsOnly

      /consoleloggerparameters:
                         Parameters to console logger. (Short form: /clp)
                         The available parameters are:
                            PerformanceSummary--Show time spent in tasks, targets
                                and projects.
                            Summary--Show error and warning summary at the end.
                            NoSummary--Don't show error and warning summary at the
                                end.
                            **ErrorsOnly--Show only errors.**
                            WarningsOnly--Show only warnings.
                            NoItemAndPropertyList--Don't show list of items and
                                properties at the start of each project build.
                            ShowCommandLine--Show TaskCommandLineEvent messages
                            ShowTimestamp--Display the Timestamp as a prefix to any
                                message.
                            ShowEventId--Show eventId for started events, finished
                                events, and messages
                            ForceNoAlign--Does not align the text to the size of
                                the console buffer
                            DisableMPLogging-- Disable the multiprocessor
                                logging style of output when running in
                                non-multiprocessor mode.
                            EnableMPLogging--Enable the multiprocessor logging
                                style even when running in non-multiprocessor
                                mode. This logging style is on by default.
                            Verbosity--overrides the /verbosity setting for this
                                logger.
    

提交回复
热议问题