Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The standard msbuild error/warning format is described here: <a href="http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx" rel="noreferrer">http://blogs.msdn.com/b/msbuild/archive/2006/11/03/msbuild-visual-studio-aware-error-messages-and-message-formats.aspx</a>.</p> <p>In a nutshell, the format is:</p> <blockquote> <p>MSBuild recognizes error messages and warnings that have been specially formatted by many command line tools that typically write to the console. For instance, take a look at the following error messages - they are all properly formatted to be MSBuild and Visual Studio friendly.</p> <pre><code>Main.cs(17,20): warning CS0168: The variable 'foo' is declared but never used C:\dir1\foo.resx(2) : error BC30188: Declaration expected. cl : Command line warning D4024 : unrecognized source file type 'foo.cs', object file assumed error CS0006: Metadata file 'System.dll' could not be found. </code></pre> <p>These messages confirm to special format that is shown below, and comprise 5 parts - the order of these parts are important and should not change: </p> <p><img src="https://i.stack.imgur.com/r6LrU.png" alt="Canonical Errors/Warnings"></p> <p><em>Origin (Required)</em></p> <p>Origin can be blank. If present, the origin is usually a tool name, like 'cl' in one of the examples. But it could also be a file name, like 'Main.cs' shown in another example. If it is a file name, then it must be an absolute or a relative file name, followed by an optional parenthesized line/column information in one of the following forms:</p> <pre><code>(line) or (line-line) or (line-col) or (line,col-col) or (line,col,line,col) </code></pre> <p><em>Subcategory (Optional)</em></p> <p>Subcategory is used to classify the category itself further, and should not be localized.</p> <p><em>Category (Required)</em></p> <p>Category must be either 'error' or 'warning'. Case does not matter. Like origin, category must not be localized.</p> <p><em>Code (Required)</em></p> <p>Code identifies an application specific error code / warning code. Code must not be localized and it must not contain spaces.</p> <p><em>Text (Optional)</em></p> <p>User friendly text that explains the error, and <em>must</em> be localized if you cater to multiple locales.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload