public override string PrepareForBuild(BuildOptions options, BuildTarget target) { if (EditorUserBuildSettings.wsaSDK != WSASDK.UWP) { return(null); } if (Utility.UseIl2CppScriptingBackend()) { return(null); } return(NuGet.Restore(target)); }
public static string Restore(BuildTarget target) { string str; NuGet get = new NuGet(target); if (!get.Restore(out str)) { Console.WriteLine("Retrying NuGet package restore."); get.Restore(out str); } return(str); }