Skip to content

Commit 36915bc

Browse files
committed
Change Cli for windows
1 parent 4c54404 commit 36915bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Cli/Program.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Diagnostics;
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Diagnostics;
4+
using System.IO;
5+
using System.Linq;
26

37
namespace Cleipnir.ResilientFunctions.Cli;
48

@@ -18,7 +22,7 @@ private static int Main(string[] args)
1822
var updateVersion = args[0] == "all" || args[0] == "update_version";
1923
var pack = args[0] == "all" || args[0] == "pack";
2024

21-
var root = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Repos/Cleipnir.ResilientFunctions";
25+
var root = $"C:/Repos/Cleipnir.ResilientFunctions"; //mac_os $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Repos/Cleipnir.ResilientFunctions";
2226
var output = Path.GetFullPath(@"./nugets");
2327

2428
if (Directory.Exists(output))
@@ -92,7 +96,7 @@ private static void PackProject(string projectPath, string outputPath)
9296
p.StartInfo.RedirectStandardOutput = true;
9397
p.StartInfo.RedirectStandardError = true;
9498
p.StartInfo.UseShellExecute = false;
95-
p.StartInfo.FileName = "/usr/bin/dotnet";
99+
p.StartInfo.FileName = @"C:\Program Files\dotnet\dotnet.exe"; //mac_os "/usr/bin/dotnet";
96100
p.StartInfo.WorkingDirectory = projectPath;
97101
p.StartInfo.Arguments = $"dotnet pack -c Release /p:ContinuousIntegrationBuild=true -o {outputPath}";
98102
p.Start();

0 commit comments

Comments
 (0)