1. vswhere 可以展示出所有安装的IDE的信息。
2.
rem Check to see if the files in the UBT directory have changed. We conditionally include platform files from the .csproj file, but MSBuild doesn‘t recognize the dependency when new files are added.
//清空目录
md ..\Intermediate\Build >nul 2>nul
//找到目录下所有以后缀名为.cs的文件 dir /s /b Programs\UnrealBuildTool\*.cs >..\Intermediate\Build\UnrealBuildToolFiles.txt
//如果存在platforms目录,则将该目录下面的文件也都天剑到unrealbuildToolFiles.txt里面 if exist ..\..\Platforms dir /s /b ..\..\Platforms\*.cs >> ..\Intermediate\Build\UnrealBuildToolFiles.txt
//将unrealBuildToolFiles.txt中的内容拷贝到UnrealBuildToolPrevFiles.txt中 fc /b ..\Intermediate\Build\UnrealBuildToolFiles.txt ..\Intermediate\Build\UnrealBuildToolPrevFiles.txt >nul 2>nul if not errorlevel 1 goto SkipClean
//如果有错误,直接将现在的文件拷贝纸UnrealBuildToolPrevFiles.txt中 copy /y ..\Intermediate\Build\UnrealBuildToolFiles.txt ..\Intermediate\Build\UnrealBuildToolPrevFiles.txt >nul %MSBUILD_EXE% /nologo /verbosity:quiet Programs\UnrealBuildTool\UnrealBuildTool.csproj /property:Configuration=Development /property:Platform=AnyCPU /target:Clean :SkipClean
//编译,生成UnrealBuildTool.exe %MSBUILD_EXE% /nologo /verbosity:quiet Programs\UnrealBuildTool\UnrealBuildTool.csproj /property:Configuration=Development /property:Platform=AnyCPU /target:Build if errorlevel 1 goto Error_UBTCompileFailed
原文:https://www.cnblogs.com/khacker/p/13731405.html