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"

原文地址:https://www.cnblogs.com/mttnor/p/12200430.html