[scripting] removed unused method + added .gitignore
This commit is contained in:
Родитель
018a68fcc4
Коммит
385ef95435
|
@ -0,0 +1,4 @@
|
|||
**/bin/*
|
||||
**/obj/*
|
||||
packages/
|
||||
.vs/
|
|
@ -82,7 +82,6 @@ namespace UnityScript2CSharp.Tests
|
|||
{
|
||||
Console.WriteLine("Converted files saved to: {0}", saveToFolder);
|
||||
|
||||
var unityWorkspaceRoot = GetUnityWorkspaceRoot();
|
||||
var converter = new UnityScript2CSharpConverter(true);
|
||||
|
||||
Action<string, string, int> onScriptConverted = (name, content, unsupportedCount) =>
|
||||
|
@ -107,22 +106,6 @@ namespace UnityScript2CSharp.Tests
|
|||
return converter;
|
||||
}
|
||||
|
||||
private static string GetUnityWorkspaceRoot()
|
||||
{
|
||||
var currentFolder = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
var probeStarttingPoint = currentFolder;
|
||||
|
||||
while (currentFolder.Length > 0)
|
||||
{
|
||||
if (File.Exists(Path.Combine(currentFolder, "build.pl")))
|
||||
return currentFolder;
|
||||
|
||||
currentFolder = Path.GetDirectoryName(currentFolder);
|
||||
}
|
||||
|
||||
throw new Exception($"Unable to resolve workspace root from {probeStarttingPoint}");
|
||||
}
|
||||
|
||||
private static string SavePathFrom(string testName)
|
||||
{
|
||||
var sb = new StringBuilder(testName);
|
||||
|
|
Загрузка…
Ссылка в новой задаче