Jelajahi Sumber

优化生成文件名。

Dail 1 tahun lalu
induk
melakukan
1d36e1bedd
6 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. TEMPAT SAMPAH
      .vs/ConsoleApp2/v17/.suo
  2. 1 1
      Program.cs
  3. TEMPAT SAMPAH
      bin/Debug/ConsoleApp2.exe
  4. TEMPAT SAMPAH
      bin/Debug/ConsoleApp2.pdb
  5. TEMPAT SAMPAH
      obj/Debug/ConsoleApp2.exe
  6. TEMPAT SAMPAH
      obj/Debug/ConsoleApp2.pdb

TEMPAT SAMPAH
.vs/ConsoleApp2/v17/.suo


+ 1 - 1
Program.cs

@@ -219,7 +219,7 @@ namespace ConsoleApp2
                     objReader.Close();
                     try
                     {
-                        string filename = Path.GetDirectoryName(srcFile) + "\\" + Path.GetFileName(srcFile) + ".ttcfg";
+                        string filename = Path.GetDirectoryName(srcFile) + "\\" + Path.GetFileNameWithoutExtension(srcFile) + ".ttcfg";
                         if (File.Exists(filename))//文件已存在,跳过
                         {
                             Console.WriteLine("文件已存在,跳过!\r\n");                            

TEMPAT SAMPAH
bin/Debug/ConsoleApp2.exe


TEMPAT SAMPAH
bin/Debug/ConsoleApp2.pdb


TEMPAT SAMPAH
obj/Debug/ConsoleApp2.exe


TEMPAT SAMPAH
obj/Debug/ConsoleApp2.pdb