Skip to content

Commit 0543aed

Browse files
committed
fix paths of codegenerator
1 parent dea5251 commit 0543aed

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/CodeGeneration/ApiGenerator/ApiGenerator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<VersionSuffix>alpha</VersionSuffix>
99
<NoWarn>NU1701</NoWarn>
1010
<PreserveCompilationContext>true</PreserveCompilationContext>
11+
<LangVersion>default</LangVersion>
1112
</PropertyGroup>
1213
<ItemGroup>
1314
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />

src/CodeGeneration/ApiGenerator/CodeConfiguration.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ public static class CodeConfiguration
1111
private static string _root = null;
1212

1313
// @formatter:off — disable formatter after this line
14-
public static string EsNetFolder { get; } = $@"{Root}..\..\..\src\Elasticsearch.Net\";
14+
public static string EsNetFolder { get; } = $@"{Root}../../../src/Elasticsearch.Net/";
1515
public static string LastDownloadedVersionFile { get; } = Path.Combine(Root, "last_downloaded_version.txt");
1616

17-
public static string NestFolder { get; } = $@"{Root}..\..\..\src\Nest\";
18-
public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification\";
19-
public static string ViewFolder { get; } = $@"{Root}Views\";
17+
public static string NestFolder { get; } = $@"{Root}../../../src/Nest/";
18+
public static string RestSpecificationFolder { get; } = $@"{Root}RestSpecification/";
19+
public static string ViewFolder { get; } = $@"{Root}Views/";
2020
// @formatter:on — enable formatter after this line
2121

2222
public static readonly Assembly Assembly = typeof(ApiGenerator).Assembly;
@@ -72,7 +72,7 @@ private static string Root
7272
directoryInfo.Parent != null &&
7373
directoryInfo.Parent.Name == "CodeGeneration";
7474

75-
_root = runningAsDnx ? "" : @"..\..\..\";
75+
_root = runningAsDnx ? "" : @"../../../";
7676
return _root;
7777
}
7878
}

0 commit comments

Comments
 (0)