From 69227081c290e6fdd70d537d936b9cb8d6119ac3 Mon Sep 17 00:00:00 2001 From: Emmanuel Mathot Date: Mon, 11 Apr 2022 16:37:29 +0200 Subject: [PATCH 1/2] fix dll plugin load for self contained package --- .vscode/launch.json | 5 +- .../WalkEachTargetPerProject.targets | 165 ------------------ .../Terradue/OpenSearch/Model/DataModel.cs | 2 +- 3 files changed, 4 insertions(+), 168 deletions(-) delete mode 100644 Terradue.OpenSearch.Client/WalkEachTargetPerProject.targets diff --git a/.vscode/launch.json b/.vscode/launch.json index fe5afff1..81c47555 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,13 +5,14 @@ "version": "0.2.0", "configurations": [ { - "name": "Query sentinel2 index", + "name": "Query sentinel1 index", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceRoot}/Terradue.OpenSearch.Client/bin/Debug/net5.0/OpenSearchClient", "args": [ - "https://catalog.terradue.com/sentinel2/search" + "https://catalog.terradue.com/sentinel1/search", + "enclosure" ], "cwd": "${workspaceRoot}", "stopAtEntry": false, diff --git a/Terradue.OpenSearch.Client/WalkEachTargetPerProject.targets b/Terradue.OpenSearch.Client/WalkEachTargetPerProject.targets deleted file mode 100644 index 759c5266..00000000 --- a/Terradue.OpenSearch.Client/WalkEachTargetPerProject.targets +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - - <_RemoveRestoreGraphEntry Include="@(_RestoreGraphEntry->WithMetadataValue('Type', 'ProjectSpec'))" /> - - <_RemoveRestoreGraphEntry Remove="@(_RemoveRestoreGraphEntry->WithMetadataValue('ProjectUniqueName', $(MSBuildProjectFullPath)))" /> - <_RestoreGraphEntry Remove="@(_RemoveRestoreGraphEntry)" /> - - - - - - - - - - - - - false - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <_BuildOutputInPackage Include="@(__BuildOutputInPackage)"> - $(_TargetFramework) - - - - - - - - - - - - <_PackageFiles Include="@(__PackageFiles)"> - $(_TargetFramework) - - - - - - - - - - - - <_TargetPathsToSymbols Include="@(__TargetPathsToSymbols)"> - $(_TargetFramework) - - - - - - - - - - - - - <_SourceFiles Include="@(__SourceFiles)"> - $(_TargetFramework) - - - - - - - - - - - - - - - - - - - diff --git a/Terradue.OpenSearch.Model/Terradue/OpenSearch/Model/DataModel.cs b/Terradue.OpenSearch.Model/Terradue/OpenSearch/Model/DataModel.cs index 861c0560..a8ddc3eb 100644 --- a/Terradue.OpenSearch.Model/Terradue/OpenSearch/Model/DataModel.cs +++ b/Terradue.OpenSearch.Model/Terradue/OpenSearch/Model/DataModel.cs @@ -43,7 +43,7 @@ public static IOpenSearchClientDataModelExtension FindPluginByName(string name) string dirpath = Path.GetDirectoryName((new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).AbsolutePath); log.Debug(string.Format("Scan {0} for OpenSearch Client plugins", dirpath)); - foreach (string dll in Directory.GetFiles(dirpath, "*.dll")) + foreach (string dll in Directory.GetFiles(dirpath, "Terradue.*.dll")) allAssemblies.Add(Assembly.LoadFile(dll)); foreach (var assembly in allAssemblies) { From 3442a85856a34a28f96d572f1337ee0d6e9bf0a6 Mon Sep 17 00:00:00 2001 From: Emmanuel Mathot Date: Mon, 11 Apr 2022 16:38:33 +0200 Subject: [PATCH 2/2] ready to release 2.0.1 --- CHANGELOG.md | 10 +++++++++- .../Terradue.OpenSearch.Client.csproj | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c69cace..e3984345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -## [2.0.0](https://github.com/Terradue/DotNetOpenSearchClient/compare/1.9.9...2.0.0) +## [2.0.1](https://github.com/Terradue/DotNetOpenSearchClient/compare/2.0.0...2.0.1) ### Commits +- fix dll plugin load for self contained package [`6922708`](https://github.com/Terradue/DotNetOpenSearchClient/commit/69227081c290e6fdd70d537d936b9cb8d6119ac3) +- fix release [`1380f94`](https://github.com/Terradue/DotNetOpenSearchClient/commit/1380f9448144278597403bbb18eff1d1ad67ccf7) + +## [2.0.0](https://github.com/Terradue/DotNetOpenSearchClient/compare/1.9.9...2.0.0) - 2022-04-11 + +### Commits + +- CHANGELOG [`80d33dc`](https://github.com/Terradue/DotNetOpenSearchClient/commit/80d33dc7d36aa23607ac242e84a37177005056ce) - new build [`33e03f7`](https://github.com/Terradue/DotNetOpenSearchClient/commit/33e03f7ef62616d289bf7a0200a0590d1a98d2ef) - move to net5 [`43b4d02`](https://github.com/Terradue/DotNetOpenSearchClient/commit/43b4d02649d2587b19909a11502a2fa873b1fc51) - removed src [`e35aaf3`](https://github.com/Terradue/DotNetOpenSearchClient/commit/e35aaf34ca728807aa9beced98bd1d67c1116320) diff --git a/Terradue.OpenSearch.Client/Terradue.OpenSearch.Client.csproj b/Terradue.OpenSearch.Client/Terradue.OpenSearch.Client.csproj index dae91987..d2184c7e 100644 --- a/Terradue.OpenSearch.Client/Terradue.OpenSearch.Client.csproj +++ b/Terradue.OpenSearch.Client/Terradue.OpenSearch.Client.csproj @@ -8,7 +8,7 @@ DotNetOpenSearchClient Generic OpenSearch Client LICENSE - 2.0.0 + 2.0.1 Emmanuel Mathot Terradue https://github.com/Terradue/DotNetOpenSearchClient