Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
connorivy committed Dec 3, 2024
1 parent a4b1f0a commit 7168c27
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions tests/MockMe.Tests.Runner/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@
// ?? throw new InvalidOperationException("process must not be null");
//await clean.WaitForExitAsync();

//ProcessStartInfo cleanStartInfo =
// new()
// {
// FileName = "dotnet",
// Arguments = $"build {Path.Combine(testsFolderPath, "..\\", "src", "MockMe")} -c Debug",
// };
ProcessStartInfo cleanStartInfo =
new()
{
FileName = "dotnet",
Arguments = $"build {Path.Combine(testsFolderPath, "..\\", "src", "MockMe")} -c Debug",
};

//using Process clean =
// Process.Start(cleanStartInfo)
// ?? throw new InvalidOperationException("process must not be null");
//await clean.WaitForExitAsync();
using Process clean =
Process.Start(cleanStartInfo)
?? throw new InvalidOperationException("process must not be null");
await clean.WaitForExitAsync();

//var generatorBinPath = Path.Combine(
// testsFolderPath,
// "..",
// "src",
// "MockMe.Generator",
// "bin",
// "Debug",
// "netstandard2.0"
//);
//foreach (var x in Directory.GetFiles(generatorBinPath))
//{
// Console.WriteLine(x);
//}
var generatorBinPath = Path.Combine(
testsFolderPath,
"..",
"src",
"MockMe.Generator",
"bin",
"Debug",
"netstandard2.0"
);
foreach (var x in Directory.GetFiles(generatorBinPath))
{
Console.WriteLine(x);
}

//Assembly.LoadFrom(Path.Combine(generatorBinPath, "MockMe.Generator.dll"));
Assembly.LoadFrom(Path.Combine(generatorBinPath, "MockMe.Generator.dll"));

ProcessStartInfo buildStartInfo =
new() { FileName = "dotnet", Arguments = $"build --no-incremental -c Debug" };
Expand Down

0 comments on commit 7168c27

Please sign in to comment.