I'm calling cmd /C gradlew assembleRelease
from C# code. I'm trying to display the gradle output log into the C# console (or file). This code is from a nuget package running in Unity.
Attempts so far:
cmd /C gradlew assembleRelease > gradleLog.txt
Log(File.ReadAllText("gradleLog.txt"))
I just get the C# stacktrace. Not the gradle log.
Tried this answer with the same result: https://stackoverflow.com/a/206347
Is it possible to get the whole gradle output to the console or a file in such a scenario? Let me know if you guys need more information. Thanks!