Last active
October 12, 2016 14:39
Star
You must be signed in to star a gist
Unityで利用しているアセンブリをロードするcsxファイルを生成する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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