Skip to content

Commit c746c53

Browse files
committed
DNX build failure fixes
- File.IO needed to be referenced now that we have an API around reading a license file from disk - ifdef reading a license location from env variables in dotnetcore
1 parent f04ae60 commit c746c53

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Nest/project.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
},
109109
"dependencies": {
110110
"System.Collections": "4.0.11-beta-23225",
111+
"System.IO.FileSystem": "4.0.1-beta-23225",
111112
"System.Diagnostics.Tools": "4.0.1-beta-23225",
112113
"System.Dynamic.Runtime": "4.0.11-beta-23516",
113114
"System.Linq": "4.0.0-beta-23109",

src/Tests/Framework/Integration/Process/ElasticsearchNode.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ private void ValidateLicense()
255255
if (license.IsValid && license.License.Status == LicenseStatus.Active) return;
256256

257257
var exceptionMessageStart = "Server has license plugin installed, ";
258+
#if DOTNETCORE
259+
var licenseFile = string.Empty;
260+
#else
258261
var licenseFile = Environment.GetEnvironmentVariable("ES_LICENSE_FILE", EnvironmentVariableTarget.Machine);
262+
#endif
259263
if (!string.IsNullOrWhiteSpace(licenseFile))
260264
{
261265
var putLicense = client.PostLicense(new PostLicenseRequest { License = License.LoadFromDisk(licenseFile) });

0 commit comments

Comments
 (0)