Skip to content

Instantly share code, notes, and snippets.

@EsProgram
Last active October 12, 2016 14:39
Show Gist options
  • Save EsProgram/56faed588e76b1db3c7e32263d5e52d5 to your computer and use it in GitHub Desktop.
Save EsProgram/56faed588e76b1db3c7e32263d5e52d5 to your computer and use it in GitHub Desktop.
Unityで利用しているアセンブリをロードするcsxファイルを生成する
DirectoryInfo info = new DirectoryInfo(Path.Combine(Directory.GetCurrentDirectory(), "Library"));
var assemblies = info.GetFiles("*.dll", SearchOption.AllDirectories);
using(var writer = File.CreateText("LoadUnityAssemblies.csx"))
{
foreach(var assembliyPath in assemblies)
{
writer.WriteLine(string.Format("#r \"{0}\"", assembliyPath.FullName));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment