Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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