VS 自动化编译命令

var editor = Type.GetType("UnityEditor.SyncVS, UnityEditor");
var SyncSolution = editor.GetMethod("SyncSolution", BindingFlags.Public | BindingFlags.Static);
SyncSolution.Invoke(null, null);
Debug.Log("Solution synced!");

rem 编译dll文件
%MSBuild% /t:ReBuild /property:Configuration=Debug "%WORKSPACE%/project_code/client/Code.csproj"

%MSBuild% /t:ReBuild /property:Configuration=Debug "%WORKSPACE%/project_code/client/AEEditor.csproj"

posted on 2020-01-16 11:39  魔天天  阅读(713)  评论(0编辑  收藏  举报