-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMigrateDLL.bat
More file actions
26 lines (24 loc) · 834 Bytes
/
MigrateDLL.bat
File metadata and controls
26 lines (24 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
REM Automatically migrates DLL files from the VS solution into Unity
REM and generates MDBs. Unity's included PDB2MDB crashes on these DLLs
REM so we use a newer one from Mono itself included in the Util directory.
SET ROOT_PATH=%~dp0
SET ASSEMBLY_PATH=%~dp0.\UnityClient\Assets\Assemblies\Built\
SET PROJECT_PATH=%1
SET PDB2MDB_PATH=pdb2mdb.exe
ECHO DLL MIGRATION BEGIN
ECHO Source: %PROJECT_PATH%
ECHO Destination: %ASSEMBLY_PATH%
ECHO Clearing directory...
DEL /Q %ASSEMBLY_PATH%\*
ECHO Copying DLLs...
ECHO f | xcopy "%PROJECT_PATH%*.dll" "%ASSEMBLY_PATH%" /Y
ECHO Copying PDBs...
ECHO f | xcopy "%PROJECT_PATH%*.pdb" "%ASSEMBLY_PATH%" /Y
FOR %%i IN ("%ASSEMBLY_PATH%*.dll") DO (
IF EXIST "%%~npi.pdb" (
ECHO Generating MDB for %%i...
"%ROOT_PATH%.\%PDB2MDB_PATH%" "%%i"
)
)
ECHO DLL MIGRATION FINISHED