hotfix: directory init fixes & installer file naming system

This commit is contained in:
2026-03-11 22:08:15 +01:00
parent 74fddcdb9d
commit ff101bf569
3 changed files with 7 additions and 7 deletions

View File

@@ -169,7 +169,7 @@
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_058C8316BA034FF38880D3C8838A3F74"
{
"SourcePath" = "8:E:\\Development\\Scripts\\CM3Merge\\merged-cars.json"
"TargetName" = "8:car_data,json"
"TargetName" = "8:car_data.json"
"Tag" = "8:"
"Folder" = "8:_91D306E0AE6B4CA09DB4A07129FBDD93"
"Condition" = "8:"
@@ -1084,7 +1084,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_A6F761D38264485ABAB61B553E1CAE3C"
{
"SourcePath" = "8:..\\CarManagerV3\\bin\\Release\\net8.0-windows\\win-x64\\publish\\CarManagerV3.exe"
"SourcePath" = "8:..\\CarManagerV3\\bin\\Debug\\net8.0-windows\\win-x64\\publish\\CarManagerV3.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_B69138933B80450EA18D704C54E8913F"

View File

@@ -218,7 +218,7 @@ namespace CarManagerV3
Car other = cars.Where(c => c.Order < order).OrderByDescending(c => c.Order).FirstOrDefault();
if (other != null)
{
Console.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
System.Diagnostics.Debug.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
int temp = car.Order;
car.Order = other.Order;
other.Order = temp;
@@ -235,7 +235,7 @@ namespace CarManagerV3
Car other = cars.Where(c => c.Order > order).OrderBy(c => c.Order).FirstOrDefault();
if (other != null)
{
Console.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
System.Diagnostics.Debug.WriteLine($"Swapping order of {car.ToString()} ({car.Order}) and {other.ToString()} ({other.Order})");
int temp = car.Order;
car.Order = other.Order;
other.Order = temp;

View File

@@ -50,11 +50,11 @@ namespace CarManagerV3
{
try
{
//string directory = Path.GetDirectoryName(path);
string directory = Path.GetDirectoryName(path);
Console.WriteLine($"Initializing file and folders for path: {path}");
if (!Directory.Exists(path))
if (!Directory.Exists(directory))
{
Directory.CreateDirectory(path);
Directory.CreateDirectory(directory);
}
if(!folderOnly) InitializeFile(path);
}