From e2fc4618ad71153df3ee7523343e7f268f7f30ed Mon Sep 17 00:00:00 2001 From: "DarkLiKally (Stefan Sch)" Date: Sun, 16 Sep 2018 10:28:50 +0200 Subject: [PATCH] Moved interfaces to Abstrtactions project / package --- I18Next.Net.sln | 6 ++++++ .../Backends/ITranslationBackend.cs | 0 .../I18Next.Net.Abstractions.csproj | 16 ++++++++++++++++ .../II18Next.cs | 0 .../Plugins/IFormatter.cs | 0 .../Plugins/IInterpolator.cs | 0 .../Plugins/ILanguageDetector.cs | 0 .../Plugins/ILogger.cs | 0 .../Plugins/IPluralResolver.cs | 0 .../Plugins/IPostProcessor.cs | 0 .../Plugins/ITranslator.cs | 0 .../TranslationTrees/ITranslationTree.cs | 0 .../TranslationTrees/ITranslationTreeBuilder.cs | 0 .../ITranslationTreeBuilderFactory.cs | 0 src/I18Next.Net/I18Next.Net.csproj | 3 +++ 15 files changed, 25 insertions(+) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Backends/ITranslationBackend.cs (100%) create mode 100644 src/I18Next.Net.Abstractions/I18Next.Net.Abstractions.csproj rename src/{I18Next.Net => I18Next.Net.Abstractions}/II18Next.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/IFormatter.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/IInterpolator.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/ILanguageDetector.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/ILogger.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/IPluralResolver.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/IPostProcessor.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/Plugins/ITranslator.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/TranslationTrees/ITranslationTree.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/TranslationTrees/ITranslationTreeBuilder.cs (100%) rename src/{I18Next.Net => I18Next.Net.Abstractions}/TranslationTrees/ITranslationTreeBuilderFactory.cs (100%) diff --git a/I18Next.Net.sln b/I18Next.Net.sln index c9fa97c..22450ae 100644 --- a/I18Next.Net.sln +++ b/I18Next.Net.sln @@ -14,6 +14,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "I18Next.Net.AspNetCore", "s EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.WebApp", "examples\Example.WebApp\Example.WebApp.csproj", "{7A9BDD90-BC7A-4B7D-A3F0-42A83D04E6C3}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "I18Next.Net.Abstractions", "src\I18Next.Net.Abstractions\I18Next.Net.Abstractions.csproj", "{42AB2562-8DA6-41E1-ABD5-152DDD622E6D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -48,5 +50,9 @@ Global {7A9BDD90-BC7A-4B7D-A3F0-42A83D04E6C3}.Debug|Any CPU.Build.0 = Debug|Any CPU {7A9BDD90-BC7A-4B7D-A3F0-42A83D04E6C3}.Release|Any CPU.ActiveCfg = Release|Any CPU {7A9BDD90-BC7A-4B7D-A3F0-42A83D04E6C3}.Release|Any CPU.Build.0 = Release|Any CPU + {42AB2562-8DA6-41E1-ABD5-152DDD622E6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {42AB2562-8DA6-41E1-ABD5-152DDD622E6D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {42AB2562-8DA6-41E1-ABD5-152DDD622E6D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {42AB2562-8DA6-41E1-ABD5-152DDD622E6D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/I18Next.Net/Backends/ITranslationBackend.cs b/src/I18Next.Net.Abstractions/Backends/ITranslationBackend.cs similarity index 100% rename from src/I18Next.Net/Backends/ITranslationBackend.cs rename to src/I18Next.Net.Abstractions/Backends/ITranslationBackend.cs diff --git a/src/I18Next.Net.Abstractions/I18Next.Net.Abstractions.csproj b/src/I18Next.Net.Abstractions/I18Next.Net.Abstractions.csproj new file mode 100644 index 0000000..79f246d --- /dev/null +++ b/src/I18Next.Net.Abstractions/I18Next.Net.Abstractions.csproj @@ -0,0 +1,16 @@ + + + + netstandard2.0 + I18Next.Net + DarkLiKally + DarkLiKally + 0.5.1 + https://github.com/DarkLiKally/I18Next.Net + https://github.com/DarkLiKally/I18Next.Net + git + true + I18Next.Net + + + diff --git a/src/I18Next.Net/II18Next.cs b/src/I18Next.Net.Abstractions/II18Next.cs similarity index 100% rename from src/I18Next.Net/II18Next.cs rename to src/I18Next.Net.Abstractions/II18Next.cs diff --git a/src/I18Next.Net/Plugins/IFormatter.cs b/src/I18Next.Net.Abstractions/Plugins/IFormatter.cs similarity index 100% rename from src/I18Next.Net/Plugins/IFormatter.cs rename to src/I18Next.Net.Abstractions/Plugins/IFormatter.cs diff --git a/src/I18Next.Net/Plugins/IInterpolator.cs b/src/I18Next.Net.Abstractions/Plugins/IInterpolator.cs similarity index 100% rename from src/I18Next.Net/Plugins/IInterpolator.cs rename to src/I18Next.Net.Abstractions/Plugins/IInterpolator.cs diff --git a/src/I18Next.Net/Plugins/ILanguageDetector.cs b/src/I18Next.Net.Abstractions/Plugins/ILanguageDetector.cs similarity index 100% rename from src/I18Next.Net/Plugins/ILanguageDetector.cs rename to src/I18Next.Net.Abstractions/Plugins/ILanguageDetector.cs diff --git a/src/I18Next.Net/Plugins/ILogger.cs b/src/I18Next.Net.Abstractions/Plugins/ILogger.cs similarity index 100% rename from src/I18Next.Net/Plugins/ILogger.cs rename to src/I18Next.Net.Abstractions/Plugins/ILogger.cs diff --git a/src/I18Next.Net/Plugins/IPluralResolver.cs b/src/I18Next.Net.Abstractions/Plugins/IPluralResolver.cs similarity index 100% rename from src/I18Next.Net/Plugins/IPluralResolver.cs rename to src/I18Next.Net.Abstractions/Plugins/IPluralResolver.cs diff --git a/src/I18Next.Net/Plugins/IPostProcessor.cs b/src/I18Next.Net.Abstractions/Plugins/IPostProcessor.cs similarity index 100% rename from src/I18Next.Net/Plugins/IPostProcessor.cs rename to src/I18Next.Net.Abstractions/Plugins/IPostProcessor.cs diff --git a/src/I18Next.Net/Plugins/ITranslator.cs b/src/I18Next.Net.Abstractions/Plugins/ITranslator.cs similarity index 100% rename from src/I18Next.Net/Plugins/ITranslator.cs rename to src/I18Next.Net.Abstractions/Plugins/ITranslator.cs diff --git a/src/I18Next.Net/TranslationTrees/ITranslationTree.cs b/src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTree.cs similarity index 100% rename from src/I18Next.Net/TranslationTrees/ITranslationTree.cs rename to src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTree.cs diff --git a/src/I18Next.Net/TranslationTrees/ITranslationTreeBuilder.cs b/src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTreeBuilder.cs similarity index 100% rename from src/I18Next.Net/TranslationTrees/ITranslationTreeBuilder.cs rename to src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTreeBuilder.cs diff --git a/src/I18Next.Net/TranslationTrees/ITranslationTreeBuilderFactory.cs b/src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTreeBuilderFactory.cs similarity index 100% rename from src/I18Next.Net/TranslationTrees/ITranslationTreeBuilderFactory.cs rename to src/I18Next.Net.Abstractions/TranslationTrees/ITranslationTreeBuilderFactory.cs diff --git a/src/I18Next.Net/I18Next.Net.csproj b/src/I18Next.Net/I18Next.Net.csproj index 5473c37..c179d0d 100644 --- a/src/I18Next.Net/I18Next.Net.csproj +++ b/src/I18Next.Net/I18Next.Net.csproj @@ -12,4 +12,7 @@ + + +