Selaa lähdekoodia

將 Common 中的命名空間變成 Yuuna.Common 開頭

0x0001F36D 6 vuotta sitten
vanhempi
commit
aea80f9af5

+ 2 - 0
.gitignore

@@ -2,6 +2,8 @@
 ## files generated by popular Visual Studio add-ons.
 ##
 ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+### secret.json
+[Ss][Ee][Cc][Rr][Ee][Tt].[Jj][Ss][Oo][Nn]
 
 # User-specific files
 *.rsuser

+ 6 - 0
Yuuna.sln

@@ -11,6 +11,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yuuna.Common", "src\Yuuna.C
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yuuna.Faker", "src\Yuuna.Faker\Yuuna.Faker.csproj", "{B38575D1-8904-4358-921A-11F3ED6FEAA8}"
 EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7AD85507-85E8-46E4-9A36-A9DFD2FC3513}"
+	ProjectSection(SolutionItems) = preProject
+		.gitattributes = .gitattributes
+		.gitignore = .gitignore
+	EndProjectSection
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Cascadable.cs

@@ -1,6 +1,6 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System.ComponentModel;
 

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/CascadeBuilder.cs

@@ -1,6 +1,6 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System;
     using System.Collections.Generic;

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Initial.cs

@@ -1,6 +1,6 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System.Collections.Generic;
     using System.Runtime.CompilerServices;

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Internal/IInternalEventBus.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System;
     using System.Collections.Generic;

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Internal/IInternalSession.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System.Collections.Generic;
 

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Internal/IInternalStorage.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     internal interface IInternalStorage
     {

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Internal/Session.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System;
     using System.Collections;

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Output.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System.Runtime.CompilerServices;
 

+ 1 - 1
src/Yuuna.Common/Artisan/Cascade/Pipeline.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Artisan.Cascade
+namespace Yuuna.Common.Artisan.Cascade
 {
     using System.Runtime.CompilerServices;
 

+ 1 - 1
src/Yuuna.Common/Linq/IImmutable.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Linq
+namespace Yuuna.Common.Linq
 {
     using System.Collections.Immutable;
 

+ 1 - 1
src/Yuuna.Common/Logging/IHistorian.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Logging
+namespace Yuuna.Common.Logging
 {
     /// <summary>
     /// 用來記錄資訊及錯誤的歷史學家。

+ 1 - 1
src/Yuuna.Common/Utilities/RandomHelper.cs

@@ -1,7 +1,7 @@
 // Author: Orlys
 // Github: https://github.com/Orlys
 
-namespace Yuuna.Utilities
+namespace Yuuna.Common.Utilities
 {
     using System;
     using System.Collections.Concurrent;

+ 1 - 1
src/Yuuna.Contracts/Patterns/IPattern.cs

@@ -7,7 +7,7 @@ namespace Yuuna.Contracts.Patterns
     using System.Collections.Immutable;
 
     using Yuuna.Contracts.Semantics;
-    using Yuuna.Linq;
+    using Yuuna.Common.Linq;
 
     public interface IPattern : IEquatable<IPattern>, IImmutable<IGroup>
     {

+ 1 - 1
src/Yuuna.Contracts/Patterns/IPatternSet.cs

@@ -3,7 +3,7 @@
 
 namespace Yuuna.Contracts.Patterns
 {
-    using Yuuna.Linq;
+    using Yuuna.Common.Linq;
 
     public interface IPatternSet : IImmutable<IPattern>
     {

+ 1 - 1
src/Yuuna.Contracts/Patterns/Internal/IncompleteBuilder.cs

@@ -5,7 +5,7 @@ namespace Yuuna.Contracts.Patterns
 {
     using System;
 
-    using Yuuna.Artisan.Cascade;
+    using Yuuna.Common.Artisan.Cascade;
 
     internal sealed class IncompleteBuilder : Output<Incomplete>, IIncompleteBuilder
     {

+ 1 - 1
src/Yuuna.Contracts/Patterns/Internal/InvokeBuilder.cs

@@ -5,7 +5,7 @@ namespace Yuuna.Contracts.Patterns
 {
     using System;
 
-    using Yuuna.Artisan.Cascade;
+    using Yuuna.Common.Artisan.Cascade;
 
     internal sealed class InvokeBuilder : Pipeline<IncompleteBuilder, Invoke>, IInvokeBuilder
     {

+ 1 - 1
src/Yuuna.Contracts/Patterns/Internal/PatternFactory.cs

@@ -8,7 +8,7 @@ namespace Yuuna.Contracts.Patterns
     using System.Collections.Generic;
     using System.Collections.Immutable;
 
-    using Yuuna.Artisan.Cascade;
+    using Yuuna.Common.Artisan.Cascade;
     using Yuuna.Contracts.Semantics;
 
     internal sealed class PatternFactory : Initial<InvokeBuilder, IPattern>, IPatternSet, IPatternBuilder

+ 1 - 1
src/Yuuna.Contracts/Semantics/IGroup.cs

@@ -5,7 +5,7 @@ namespace Yuuna.Contracts.Semantics
     using System;
     using System.Collections.Generic;
 
-    using Yuuna.Linq;
+    using Yuuna.Common.Linq;
 
     /// <summary>
     /// 群體物件。用來存放相同性質類型的同義詞物件。

+ 1 - 1
src/Yuuna.Contracts/Semantics/ISynonym.cs

@@ -6,7 +6,7 @@ namespace Yuuna.Contracts.Semantics
     using System;
     using System.Collections.Generic;
 
-    using Yuuna.Linq;
+    using Yuuna.Common.Linq;
 
     /// <summary>
     /// 同義詞物件

+ 1 - 1
src/Yuuna.Faker/Fake.cs

@@ -9,7 +9,7 @@ namespace TestPlugin
     using Yuuna.Contracts.Patterns;
     using Yuuna.Contracts.Plugins;
     using Yuuna.Contracts.Semantics;
-    using Yuuna.Utilities;
+    using Yuuna.Common.Utilities;
 
     public sealed class Fake : PluginBase
     {

+ 1 - 1
src/Yuuna/EntryPoint.cs

@@ -17,7 +17,7 @@ namespace Yuuna
     using Yuuna.Recognition.Speech;
     using Yuuna.Semantics;
     using Yuuna.TextSegmention;
-    using Yuuna.Utilities;
+    using Yuuna.Common.Utilities;
 
     internal class EntryPoint
     {

+ 6 - 0
src/Yuuna/Yuuna.csproj

@@ -19,4 +19,10 @@
     </Reference>
   </ItemGroup>
 
+  <ItemGroup>
+    <None Update="secret.json">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </None>
+  </ItemGroup>
+
 </Project>