diff --git a/STranslateDLL.sln b/STranslateDLL.sln index 6e8df0b..5bb15aa 100644 --- a/STranslateDLL.sln +++ b/STranslateDLL.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STranslateDLL", "STranslateDLL\STranslateDLL.csproj", "{6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "STranslateDLLTests", "STranslateDLLTests\STranslateDLLTests.csproj", "{EAB7B895-1A72-4897-A682-3E151058F6B8}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Debug|Any CPU.Build.0 = Debug|Any CPU {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.ActiveCfg = Release|Any CPU {6D9BB175-EF05-485B-9CE1-CBFADDB2DC0C}.Release|Any CPU.Build.0 = Release|Any CPU + {EAB7B895-1A72-4897-A682-3E151058F6B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAB7B895-1A72-4897-A682-3E151058F6B8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAB7B895-1A72-4897-A682-3E151058F6B8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAB7B895-1A72-4897-A682-3E151058F6B8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/STranslateDLL/Properties/PublishProfiles/FolderProfile.pubxml b/STranslateDLL/Properties/PublishProfiles/FolderProfile.pubxml index d37ba18..bd12f79 100644 --- a/STranslateDLL/Properties/PublishProfiles/FolderProfile.pubxml +++ b/STranslateDLL/Properties/PublishProfiles/FolderProfile.pubxml @@ -13,6 +13,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121. win-x64 false false - false + true \ No newline at end of file diff --git a/STranslateDLL/STranslateDLL.csproj b/STranslateDLL/STranslateDLL.csproj index 94b8e59..5e4cb68 100644 --- a/STranslateDLL/STranslateDLL.csproj +++ b/STranslateDLL/STranslateDLL.csproj @@ -5,6 +5,7 @@ enable enable true + zstranslate diff --git a/STranslateDLLTests/LocalModeTests.cs b/STranslateDLLTests/LocalModeTests.cs new file mode 100644 index 0000000..7426e5c --- /dev/null +++ b/STranslateDLLTests/LocalModeTests.cs @@ -0,0 +1,16 @@ +using System.Diagnostics; +using Xunit; + +namespace STranslateDLL.Tests; + +public class LocalModeTests +{ + [Fact()] + public async Task ExecuteAsyncTest() + { + var model = new LocalMode(); + Debug.WriteLine(DateTime.Now.ToLongTimeString() + "Start"); + await model.ExecuteAsync(); + Debug.WriteLine(DateTime.Now.ToLongTimeString() + "Stop"); + } +} diff --git a/STranslateDLLTests/STranslateDLLTests.csproj b/STranslateDLLTests/STranslateDLLTests.csproj new file mode 100644 index 0000000..23c7f09 --- /dev/null +++ b/STranslateDLLTests/STranslateDLLTests.csproj @@ -0,0 +1,29 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + + + + + + + + + + + + + +