Last active
October 12, 2016 14:39
-
-
Save EsProgram/56faed588e76b1db3c7e32263d5e52d5 to your computer and use it in GitHub Desktop.
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