Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Dictionary<string, string> providerOptions = new Dictionary<string, string>
  2. {
  3. {"CompilerVersion", "v3.5"}
  4. };
  5. CSharpCodeProvider provider = new CSharpCodeProvider(providerOptions);
  6.  
  7. CompilerParameters compilerParams = new CompilerParameters
  8. {
  9. GenerateInMemory = true,
  10. GenerateExecutable = false
  11. };
  12.  
  13. compilerParams.ReferencedAssemblies.Add(Assembly.GetEntryAssembly().Location);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement