diff --git a/.editorconfig b/.editorconfig
index 353bf8bba12..c9e795adf89 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -16,7 +16,7 @@ indent_size = 4
indent_style = space
indent_size = 4
-[*.{md,markdown,json,js,csproj,fsproj,targets}]
+[*.{md,markdown,json,js,csproj,fsproj,targets,targets,props}]
indent_style = space
indent_size = 2
diff --git a/build/scripts/scripts.fsproj b/build/scripts/scripts.fsproj
index b79233a506e..2cce53e05df 100644
--- a/build/scripts/scripts.fsproj
+++ b/build/scripts/scripts.fsproj
@@ -61,6 +61,12 @@
+
+ paket.bat
+ paket.bat
+ paket.bat
+ paket.bat
+
11
diff --git a/src/Artifacts.build.props b/src/Artifacts.build.props
new file mode 100644
index 00000000000..3c08b9e302e
--- /dev/null
+++ b/src/Artifacts.build.props
@@ -0,0 +1,11 @@
+
+
+
+
+
+ $(OutputPathBaseDir)\$(MSBuildProjectName)\
+
+
\ No newline at end of file
diff --git a/src/CodeGeneration/ApiGenerator/ApiGenerator.csproj b/src/CodeGeneration/ApiGenerator/ApiGenerator.csproj
index e8cf307dd64..5d6c76330dc 100644
--- a/src/CodeGeneration/ApiGenerator/ApiGenerator.csproj
+++ b/src/CodeGeneration/ApiGenerator/ApiGenerator.csproj
@@ -1,5 +1,6 @@
+
Exe
netcoreapp2.1
@@ -17,5 +18,4 @@
-
\ No newline at end of file
diff --git a/src/CodeGeneration/DocGenerator/Buildalyzer/ProjectAnalyzer.cs b/src/CodeGeneration/DocGenerator/Buildalyzer/ProjectAnalyzer.cs
index 29e93a73776..2cdba3b3de4 100644
--- a/src/CodeGeneration/DocGenerator/Buildalyzer/ProjectAnalyzer.cs
+++ b/src/CodeGeneration/DocGenerator/Buildalyzer/ProjectAnalyzer.cs
@@ -119,6 +119,8 @@ public Project Load()
}
}
+
+
// Tweaks the project file a bit to ensure a succesfull build
private static XDocument TweakProjectDocument(XDocument projectDocument, string projectFolder)
{
@@ -128,10 +130,12 @@ private static XDocument TweakProjectDocument(XDocument projectDocument, string
if (att == null) continue;
var project = att.Value;
- if (project.EndsWith("Clients.Common.targets"))
- att.Value = Path.GetFullPath(Path.Combine(projectFolder, att.Value));
- else if (project.EndsWith("outputpath.props"))
- att.Value = Path.GetFullPath(Path.Combine(projectFolder, att.Value));
+
+ if (!ResolveKnownPropsPath(projectFolder, project, att, "PublishArtifacts.build.props"))
+ {
+ ResolveKnownPropsPath(projectFolder, project, att, "Artifacts.build.props");
+ }
+ ResolveKnownPropsPath(projectFolder, project, att, "Library.build.props");
}
// Add SkipGetTargetFrameworkProperties to every ProjectReference
foreach (XElement projectReference in projectDocument.GetDescendants("ProjectReference").ToArray())
@@ -149,6 +153,17 @@ private static XDocument TweakProjectDocument(XDocument projectDocument, string
return projectDocument;
}
+ private static bool ResolveKnownPropsPath(string projectFolder, string project, XAttribute att, string buildPropFile)
+ {
+ if (!project.Contains(buildPropFile)) return false;
+ var dir = new DirectoryInfo(projectFolder).Parent;
+ while (dir != null && dir.Name != "src")
+ dir = dir.Parent;
+ if (dir == null) return true;
+ att.Value = Path.GetFullPath(Path.Combine(dir.FullName, buildPropFile));
+ return false;
+ }
+
private ProjectCollection CreateProjectCollection()
{
ProjectCollection projectCollection = new ProjectCollection(_globalProperties);
diff --git a/src/CodeGeneration/DocGenerator/DocGenerator.csproj b/src/CodeGeneration/DocGenerator/DocGenerator.csproj
index 4a554826b3b..a59b91f8dd8 100644
--- a/src/CodeGeneration/DocGenerator/DocGenerator.csproj
+++ b/src/CodeGeneration/DocGenerator/DocGenerator.csproj
@@ -1,5 +1,6 @@
+
Exe
netcoreapp2.1
@@ -17,5 +18,4 @@
-
diff --git a/src/Directory.build.props b/src/Directory.build.props
index d6f4976f0b4..bfabaf7cf7a 100644
--- a/src/Directory.build.props
+++ b/src/Directory.build.props
@@ -1,27 +1,5 @@
-
- 6.0.0
- 6.0.0
- 6.0.0
-
- $(CurrentVersion)
- $(CurrentVersion)
-
- $(CurrentAssemblyVersion)
-
- $(CurrentAssemblyFileVersion)
-
- $(DefineConstants);DOTNETCORE
- $(DefineConstants);DOTNETCORE
- $(DefineConstants);DOTNETCORE
-
- https://raw.githubusercontent.com/elastic/elasticsearch-net
- Elasticsearch BV
- Elasticsearch BV
- https://github.com/elastic/elasticsearch-net
- https://github.com/elastic/elasticsearch-net/blob/master/license.txt
- See https://github.com/elastic/elasticsearch-net/releases
- https://raw.githubusercontent.com/elastic/elasticsearch-net/master/build/nuget-icon.png
+ Latest
\ No newline at end of file
diff --git a/src/Elasticsearch.Net/Connection/CertificateValidations.cs b/src/Elasticsearch.Net/Connection/CertificateValidations.cs
index 0fc199dc196..0a6038dcbd3 100644
--- a/src/Elasticsearch.Net/Connection/CertificateValidations.cs
+++ b/src/Elasticsearch.Net/Connection/CertificateValidations.cs
@@ -57,7 +57,7 @@ public static Func