You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets the relative path of the source file with the project root as a base
13
+
/// </summary>
14
+
/// <remarks>
15
+
/// Returns substring of the <paramref name="sourceFile"/> with removed starting part of <paramref name="projectRoot"/> for standard source files within the project.
16
+
/// When a source-only package is consumed, the source file is physically in .nuget package dir and in <c>App_Packages</c> virtual dir in project.
17
+
/// It looks for the "signature" <c>contentFiles\\cs\\any\\App_Packages\\</c> of the source-only package, get's the path relative to package and prefixes it with <c>App_Packages</c>.
18
+
/// For any other files (not really have a case for it), just the file name is returned.
19
+
/// </remarks>
20
+
/// <param name="sourceFile">Full path to the source file</param>
21
+
/// <param name="projectRoot">Full path to the project root directory</param>
22
+
/// <returns>Relative path of the source file with the project root as a base</returns>
<tr><td><ahref="net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.html#t-net.adamec.dev.markupdoc.xmldocumentation.para__1no80es" >Para</a></td><td>public</td><td>Class</td><td>Class representing <para> element of XML Documentation Comments</td></tr>
103
103
<tr><td><ahref="net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.html#t-net.adamec.dev.markupdoc.xmldocumentation.param__7q99qf" >Param</a></td><td>public</td><td>Class</td><td>Class representing <param> element of XML Documentation Comments</td></tr>
104
104
<tr><td><ahref="net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.html#t-net.adamec.dev.markupdoc.xmldocumentation.paramref__1goure8" >ParamRef</a></td><td>public</td><td>Class</td><td>Class representing <paramref> element of XML Documentation Comments</td></tr>
<tr><td><ahref="net.adamec.dev.markupdoc__1d9f9qh.html#t-net.adamec.dev.markupdoc.program__cagybt" >Program</a></td><td>internal</td><td>Class</td><td>Main program entry class</td></tr>
106
107
<tr><td><ahref="net.adamec.dev.markupdoc.CodeModel__1f8sg55.html#t-net.adamec.dev.markupdoc.codemodel.propertymember__m06mbu" >PropertyMember</a></td><td>public</td><td>Class</td><td>Represents a property within the code model</td></tr>
107
108
<tr><td><ahref="net.adamec.dev.markupdoc.CodeModel.Builder__w36mxa.html#t-net.adamec.dev.markupdoc.codemodel.builder.propertymemberbuilder__k8fr6c" >PropertyMemberBuilder</a></td><td>public</td><td>Class</td><td>Builder for <ahref="net.adamec.dev.markupdoc.CodeModel__1f8sg55.html#t-net.adamec.dev.markupdoc.codemodel.propertymember__m06mbu" >PropertyMember</a></td></tr>
Copy file name to clipboardExpand all lines: doc/MarkupDoc.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@
70
70
|[Para](net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.md#t-net.adamec.dev.markupdoc.xmldocumentation.para__1no80es)| public | Class | Class representing <para> element of XML Documentation Comments |
71
71
|[Param](net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.md#t-net.adamec.dev.markupdoc.xmldocumentation.param__7q99qf)| public | Class | Class representing <param> element of XML Documentation Comments |
72
72
|[ParamRef](net.adamec.dev.markupdoc.XmlDocumentation__1ter1y6.md#t-net.adamec.dev.markupdoc.xmldocumentation.paramref__1goure8)| public | Class | Class representing <paramref> element of XML Documentation Comments |
73
+
|[PathUtils](net.adamec.dev.markupdoc.Utils__m327rs.md#t-net.adamec.dev.markupdoc.utils.pathutils__ueq8cw)| public | Class | File path utilities |
73
74
|[Program](net.adamec.dev.markupdoc__1d9f9qh.md#t-net.adamec.dev.markupdoc.program__cagybt)| internal | Class | Main program entry class |
74
75
|[PropertyMember](net.adamec.dev.markupdoc.CodeModel__1f8sg55.md#t-net.adamec.dev.markupdoc.codemodel.propertymember__m06mbu)| public | Class | Represents a property within the code model |
75
76
|[PropertyMemberBuilder](net.adamec.dev.markupdoc.CodeModel.Builder__w36mxa.md#t-net.adamec.dev.markupdoc.codemodel.builder.propertymemberbuilder__k8fr6c)| public | Class | Builder for [PropertyMember](net.adamec.dev.markupdoc.CodeModel__1f8sg55.md#t-net.adamec.dev.markupdoc.codemodel.propertymember__m06mbu)|
Copy file name to clipboardExpand all lines: doc/net.adamec.dev.markupdoc.Utils__m327rs.html
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ <h3> Classes </h3>
42
42
<tr><td><ahref="net.adamec.dev.markupdoc.Utils__m327rs.html#t-net.adamec.dev.markupdoc.utils.basedisposable__1niv1i9" >BaseDisposable</a></td><td>public abstract</td><td>Helper class for implementation of <ahref="https://docs.microsoft.com/en-us/dotnet/api/system.idisposable" class="link-external" target="_blank" >System.IDisposable</a> types</td></tr>
<tr><td><ahref="net.adamec.dev.markupdoc.Utils__m327rs.html#t-net.adamec.dev.markupdoc.utils.isnewutils__slf3x" >IsNewUtils</a></td><td>public static</td><td>Helpers to get the access to internal ISymbol.IsNew property</td></tr>
<p>Uses the reflection to get the access to the internal property IsNew. The retrieved <ahref="https://docs.microsoft.com/en-us/dotnet/api/system.reflection.propertyinfo" class="link-external" target="_blank" >System.Reflection.PropertyInfo</a> is cached in <ahref="net.adamec.dev.markupdoc.Utils__m327rs.html#f-net.adamec.dev.markupdoc.utils.isnewutils.isnewpropertycache__fi6gva" >IsNewPropertyCache</a> to minimize the performance impacts.</p>
313
314
<p>Go to <ahref="MarkupDoc.html#namespace-list" >namespaces</a> or <ahref="MarkupDoc.html#type-list" >types</a></p>
314
315
<p></p>
316
+
<h2><aid="t-net.adamec.dev.markupdoc.utils.pathutils__ueq8cw" ></a> PathUtils Class </h2>
<tr><td><ahref="net.adamec.dev.markupdoc.Utils__m327rs.html#m-net.adamec.dev.markupdoc.utils.pathutils.getrelativesourcefile_system.string-system.string___1t61qb1" >GetRelativeSourceFile(string, string)</a></td><td>public static</td><td>Gets the relative path of the source file with the project root as a base</td></tr>
327
+
</table>
328
+
<p></p>
329
+
<p>Go to <ahref="MarkupDoc.html#namespace-list" >namespaces</a> or <ahref="MarkupDoc.html#type-list" >types</a></p>
<strong>Method parameters</strong><dl><dt><ahref="https://docs.microsoft.com/en-us/dotnet/api/system.string" class="link-external" target="_blank" >string</a><strong>sourceFile</strong></dt><dd>Full path to the source file</dd><dt><ahref="https://docs.microsoft.com/en-us/dotnet/api/system.string" class="link-external" target="_blank" >string</a><strong>projectRoot</strong></dt><dd>Full path to the project root directory</dd></dl>
339
+
<p><strong>Return value</strong><dl><dt><ahref="https://docs.microsoft.com/en-us/dotnet/api/system.string" class="link-external" target="_blank" >string</a></dt><dd>Relative path of the source file with the project root as a base</dd></dl></p>
340
+
<h3> Remarks </h3>
341
+
<p>Returns substring of the <strong>sourceFile</strong> with removed starting part of <strong>projectRoot</strong> for standard source files within the project. When a source-only package is consumed, the source file is physically in .nuget package dir and in <codeclass="csharp">App_Packages</code> virtual dir in project. It looks for the "signature" <codeclass="csharp">contentFiles\\cs\\any\\App_Packages\\</code> of the source-only package, get's the path relative to package and prefixes it with <codeclass="csharp">App_Packages</code> . For any other files (not really have a case for it), just the file name is returned.</p>
342
+
<p>Go to <ahref="MarkupDoc.html#namespace-list" >namespaces</a> or <ahref="MarkupDoc.html#type-list" >types</a></p>
343
+
<p></p>
315
344
<h2><aid="t-net.adamec.dev.markupdoc.utils.txt__ptyt6s" ></a> Txt Class </h2>
0 commit comments