Remove unnecessary using statements from shared files
MODIFY
src/Shared/CompilerAssert.cs
src/Shared/CompilerAssert.cs
@@ -6,12 +6,9 @@ using Microsoft.CodeAnalysis.Scripting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Globalization;
using System.Diagnostics;
-using Microsoft.CodeAnalysis.Text;
namespace AddisonWesley.Michaelis.EssentialCSharp.Shared;
-
-
readonly public struct CompileError
{
public static Dictionary<string, string?> CompilerErrorMessages { get; } = new Dictionary<string, string?>()
@@ -82,6 +79,7 @@ readonly public struct CompileError
CompileError lhs, CompileError rhs) =>
!lhs.Equals(rhs);
}
+
static public class CompilerAssertOld
{
public static async Task Compile2Async(
@@ -90,7 +88,6 @@ static public class CompilerAssertOld
string? targetMethod) => await CompileAsync(
new string[] { fileName }, errorIds, targetMethod);
-
public static async Task CompileAsync(string[] fileNames, string[] errorIds, string? targetMethod = null)
{
string code = string.Empty;
@@ -175,5 +172,4 @@ static public class CompilerAssertOld
}
return actualCompileErrors;
}
-
}

MODIFY
src/Shared/NetCore.cs
src/Shared/NetCore.cs
-using System;
using System.Reflection;
namespace AddisonWesley.Michaelis.EssentialCSharp.Shared

Remove unnecessary using statements from shared files