-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support for 32Bit assemblies Fixes #60 * Check Is64BitProcess property for win32 output * Add binaries to releases
- Loading branch information
1 parent
bdc2b98
commit 7057d04
Showing
16 changed files
with
134 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@echo off | ||
|
||
SET workspace=%~dp0..\ | ||
@REM set filterregex=--filterregex \.file\= --filterregex \.attributes\.guid\= --filterregex numberOfImplementedInterfaces --filterregex implementedInterfaces | ||
set filterregex= | ||
|
||
SET net60dll=%workspace%src\dscom.demo\assembly1\bin\Release\net6.0\dSPACE.Runtime.InteropServices.DemoAssembly1.dll | ||
SET net48dll=%workspace%src\dscom.demo\assembly1\bin\Release\net48\dSPACE.Runtime.InteropServices.DemoAssembly1.dll | ||
|
||
del %workspace%src\dscom.demo\assembly1\bin\Release\net48\*.tlb | ||
del %workspace%src\dscom.demo\assembly1\bin\Release\net6.0\*.tlb | ||
del %workspace%src\dscom.demo\assembly1\bin\Release\net6.0\*.yaml | ||
del %workspace%src\dscom.demo\assembly1\bin\Release\net48\*.yaml | ||
|
||
dotnet build -c Release "%workspace%dscom.sln" | ||
IF ERRORLEVEL 1 goto error | ||
|
||
@REM dscom | ||
echo ############## dscom.exe tlbexport | ||
dotnet run --project %workspace%src\dscom.client\dscom.client.csproj -r win-x86 -f net6.0 --no-self-contained tlbexport /win32 /silent "%net60dll%" "/out:%net60dll%.tlb" | ||
|
||
IF ERRORLEVEL 1 goto error | ||
|
||
echo ############## dscom.exe tlbdump | ||
dotnet run --project %workspace%src\dscom.client\dscom.client.csproj -r win-x86 -f net6.0 --no-self-contained tlbdump %filterregex% "/tlbrefpath:%net60dll%.tlb/.." "%net60dll%.tlb" "/out:%net60dll%.yaml" | ||
IF ERRORLEVEL 1 goto error | ||
|
||
WHERE tlbexp | ||
IF %ERRORLEVEL% NEQ 0 ( | ||
ECHO. | ||
ECHO ###################################################### | ||
ECHO. | ||
ECHO tlbexp.exe not found | ||
ECHO Please add the path to tlbexp.exe to your PATH variable. | ||
ECHO. | ||
ECHO ###################################################### | ||
ECHO. | ||
goto error | ||
) | ||
|
||
@REM tlbexp | ||
echo ############## tlbexp.exe | ||
tlbexp /win32 /silent "%net48dll%" "/out:%net48dll%.tlb" | ||
IF ERRORLEVEL 1 goto error | ||
|
||
echo ############## dscom.exe tlbdump | ||
dotnet run --project %workspace%src\dscom.client\dscom.client.csproj -r win-x86 -f net6.0 --no-self-contained tlbdump %filterregex% "/tlbrefpath:%net48dll%.tlb/.." "%net48dll%.tlb" "/out:%net48dll%.yaml" | ||
IF ERRORLEVEL 1 goto error | ||
|
||
WHERE code | ||
IF %ERRORLEVEL% NEQ 0 ( | ||
ECHO. | ||
ECHO ###################################################### | ||
ECHO. | ||
ECHO You don't have Visual Studio Code installed, too bad. | ||
ECHO https://code.visualstudio.com/download | ||
ECHO. | ||
ECHO Please compare the following files: | ||
ECHO %net48dll%.yaml | ||
ECHO %net60dll%.yaml | ||
ECHO. | ||
ECHO ###################################################### | ||
ECHO. | ||
goto error | ||
) | ||
|
||
code -d "%net48dll%.yaml" "%net60dll%.yaml" | ||
|
||
:error | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters