]> insang Git - ZipProject.git/commitdiff
published directory change
authorjocloud <dhkq92@icloud.com>
Thu, 21 May 2020 07:37:46 +0000 (07:37 +0000)
committerjocloud <dhkq92@icloud.com>
Thu, 21 May 2020 07:37:46 +0000 (07:37 +0000)
ZipProject/Models/LanguagePack.cs
ZipProject/ZipProject.csproj
buildrelease

index 3e01bc765eaef8d3edd3cb1a8f4cc351004be1a9..9549928d5285d5b1e5e603e50905473a84141f4b 100644 (file)
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.IO;
 using Newtonsoft.Json;
 
@@ -7,7 +7,12 @@ namespace ZipProject.Models {
 
     public static string GetText (string lang, string id) {
 
-      string path = Environment.CurrentDirectory + "/wwwroot/Language/" + lang + ".json";
+      #if !DEBUG
+        string path = Environment.CurrentDirectory + "release/netcoreapp2.1/publish/wwwroot/Language/" + lang + ".json";
+      #else
+        string path = Environment.CurrentDirectory + "/wwwroot/Language/" + lang + ".json";
+      #endif
+      
       string json = File.OpenText (path).ReadToEnd ();
 
       dynamic result = JsonConvert.DeserializeObject<dynamic> (json);
index 2f066d1faeb209eeaa64d9190173d1be1488f200..7c6c8a1108e9c34a9e887219a00a548a1aa96a60 100644 (file)
@@ -2,7 +2,7 @@
 \r
   <PropertyGroup>\r
     <TargetFramework>netcoreapp2.1</TargetFramework>\r
-    <!-- <PublishDir>_publish</PublishDir> -->\r
+    <!-- <PublishDir>../_publish</PublishDir> -->\r
   </PropertyGroup>\r
 \r
   <ItemGroup>\r
index 6db154d507bedb5d1d0adc823aab874bd844e369..c92721a4da264557a0ea6cb58b9fbea52e0391c2 100755 (executable)
@@ -1,2 +1,3 @@
+
 cd ZipProject
-dotnet publish --configuration Release
+dotnet publish --configuration ../../../nicezip/release