Simplify obj initialization

This commit is contained in:
Paul Pacheco 2020-09-29 12:15:26 -05:00
parent 88ece20e68
commit 0132697513

View File

@ -155,8 +155,10 @@ public static void Clear()
public static void Build()
{
AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray());
assemblyBuilder.additionalReferences = ReferenceAssemblies.ToArray();
AssemblyBuilder assemblyBuilder = new AssemblyBuilder(Path.Combine(OutputDirectory, OutputFile), SourceFiles.ToArray())
{
additionalReferences = ReferenceAssemblies.ToArray()
};
if (AllowUnsafe)
{
assemblyBuilder.compilerOptions.AllowUnsafeCode = true;