25 references to LineNumber
CSharpSyntaxGenerator (1)
SourceGenerator.cs (1)
83var line = inputText.Lines[xmlException.LineNumber - 1]; // LineNumber is one-based.
Microsoft.Build (2)
BuildEventFileInfo.cs (1)
89_line = e.LineNumber;
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
Microsoft.Build.Engine.OM.UnitTests (1)
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
Microsoft.Build.Tasks.Core (3)
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
GenerateResource.cs (2)
2613_logger.LogErrorWithCodeFromResources(null, FileUtilities.GetFullPathNoThrow(inFile), xe.LineNumber, 2632_logger.LogErrorWithCodeFromResources(null, FileUtilities.GetFullPathNoThrow(inFile), xe.LineNumber,
Microsoft.Build.Utilities.Core (1)
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
Microsoft.CodeAnalysis (1)
Diagnostic\XmlLocation.cs (1)
30int lineNumber = Math.Max(exception.LineNumber - 1, 0);
Microsoft.CodeAnalysis.CSharp (1)
Compiler\DocumentationCommentCompiler.cs (1)
1355string locationString = string.Format(locationTemplate, "", e.LineNumber, e.LinePosition); // first arg is where the problem description goes
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\DocumentationComments\DocumentationCommentCompiler.TextUtils.vb (1)
140String.Format(locationTemplate, "", e.LineNumber, e.LinePosition) ' first arg is where the problem description goes
MSBuild (2)
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
ProjectSchemaValidationHandler.cs (1)
137e.LineNumber,
MSBuildTaskHost (1)
ExceptionHandling.cs (1)
197line = xmlException.LineNumber;
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
231lineNumber = xmlEx.LineNumber;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
422RethrowAsParseException(e.Message, e.LineNumber, e.LinePosition, e);
PresentationFramework (1)
System\Windows\Markup\XamlReader.cs (1)
534return new XamlParseException(xe.Message, xe.LineNumber, xe.LinePosition, baseUri, baseException);
System.Configuration.ConfigurationManager (3)
System\Configuration\ExceptionUtil.cs (2)
66if (xe.LineNumber != 0) line = xe.LineNumber;
System\Configuration\NameValueFileSectionHandler.cs (1)
53throw new ConfigurationErrorsException(e.Message, e, sourceFileFullPath, e.LineNumber);
System.Private.Xml (5)
System\Xml\Core\XmlTextReaderImpl.cs (2)
2723_curNode.SetLineInfo(xmlEx.LineNumber, xmlEx.LinePosition); 8732ReThrow(e, e.LineNumber, e.LinePosition - 6); // 6 == strlen( "<?xml " );
System\Xml\Schema\DtdParser.cs (1)
2631Throw(SR.Xml_ErrorParsingEntityName, string.Empty, e.LineNumber, e.LinePosition);
System\Xml\Xsl\Xslt\XsltLoader.cs (2)
277new SourceLineInfo(ex.SourceUri, ex.LineNumber, ex.LinePosition, ex.LineNumber, ex.LinePosition) :