[英]Visual Studio External Tools sending command to command prompt
I added Run IL button to external tool section of visual studio .我在 Visual Studio 的外部工具部分添加了 Run IL 按钮。
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当这个按钮触发时,我想用ilasm编译当前文件。我可以用这种方式打开开发人员命令提示符,但是我无法添加文件目录,所以我必须一直写“ilasm program.il”
@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我写了一个bat文件然后我像这样编辑我的外部工具
Also i added shortcut.我还添加了快捷方式。
Now this is working perfect :)现在这是完美的:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.