using (FileStream fs = File.OpenRead(options.OutputAssembly)) {
byte[] buffer = new byte[fs.Length];
fs.Read(buffer, 0, buffer.Length);
- results.CompiledAssembly = Assembly.Load(buffer, null, options.Evidence);
+ results.CompiledAssembly = Assembly.Load(buffer, null);
fs.Close();
}
} else {
break;
}
}
-
-#if NET_4_0
+
+#if NET_4_5
+ args.Append("/sdk:4.5");
+#elif NET_4_0
args.Append("/sdk:4");
#else
args.Append("/sdk:2");