I added Run IL button to external tool section of visual studio .
when this button triggered i want to compile current file with ilasm.I can open developer command prompt in this way,however i couldn't add file directory so i have to write "ilasm program.il" all the time
How can it be done automatically ?
@echo off
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\ilasm.exe" %1
SETLOCAL
set file=%1
FOR %%i IN (%file%) DO (
set filedrive=%%~di
set filepath=%%~pi
set filename=%%~ni
set fileextension=%%~xi
)
start %filedrive%%filepath%%filename%.exe
pause
I writed a bat file then i edit my external tool like this
Also i added shortcut.
Now this is working perfect :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With