Skip to content

Commit f94c311

Browse files
committed
address review comments.
1 parent 6f64ef4 commit f94c311

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ public class NewAzureProjectScaffolding : NewProjectScaffolding
2020
private const string ParentDirectory = "../";
2121
private const string SharedSourceLinkBase = "Shared/Core";
2222

23-
private int PathSegmentCount => _pathSegmentCount ??= GetPathSegmentCount();
24-
private int? _pathSegmentCount;
25-
2623
/// <inheritdoc/>
2724
protected override string GetSourceProjectFileContent()
2825
{
@@ -58,8 +55,7 @@ protected override string GetSourceProjectFileContent()
5855
"DiagnosticScopeFactory.cs",
5956
"DiagnosticScope.cs",
6057
"HttpMessageSanitizer.cs",
61-
"TrimmingAttribute.cs",
62-
"NoValueResponseOfT.cs",
58+
"TrimmingAttribute.cs"
6359
];
6460

6561
private static readonly IReadOnlyList<string> _lroSharedFiles =
@@ -128,7 +124,7 @@ private static int GetPathSegmentCount()
128124
/// <returns>A relative path string for the compile include file.</returns>
129125
protected string GetCompileInclude(string fileName, string relativeSegment = RelativeCoreSegment)
130126
{
131-
return $"{MSBuildThisFileDirectory}{string.Concat(Enumerable.Repeat(ParentDirectory, PathSegmentCount))}{relativeSegment}{fileName}";
127+
return $"{MSBuildThisFileDirectory}{string.Concat(Enumerable.Repeat(ParentDirectory, GetPathSegmentCount()))}{relativeSegment}{fileName}";
132128
}
133129

134130
/// <summary>

0 commit comments

Comments
 (0)