概述
tag : notepad++ c# IDE 编译 环境 搭配
配置C#
运行notpad++,点击“运行-》运行”菜单,出现一个弹出框,输入命令行,而后保存即可。
1. 编译
cmd /k C:WindowsMicrosoft.NETFrameworkv4.0.30319csc.exe /out:"$(CURRENT_DIRECTORY)$(NAME_PART).exe" "$(FULL_CURRENT_PATH)" & PAUSE & EXIT
cl.bat
@echo off
C:WINDOWSMicrosoft.NETFrameworkv4.0.30319csc.exe /target:exe /out:%1%2.exe %3
%1%2.exe
rem %1:$(FileDir)
rem %2:$(FileNameNoExt)
rem %3:$(FileName)
rem argument:$(FileDir) $(FileNameNoExt) $(FileName)
1.1 编译+运行
cs.compiler.bat $(CURRENT_DIRECTORY) $(NAME_PART) $(FULL_CURRENT_PATH)
cs.compiler.bat
@echo off
C:WINDOWSMicrosoft.NETFrameworkv3.5csc.exe /target:exe /out:%1%2.exe %3
%1%2.exe &PAUSE
rem %1:$(FileDir)
rem %2:$(FileNameNoExt)
rem %3:$(FileName)
/r:System.dll;System.Core.dll;System.Data.dll;System.Drawing.dll;System.DirectoryServices.dll;System.Management.dll;System.Runtime.Remoting.dll;
System.XML.dll;System.Data.OracleClient.dll;System.Deployment.dll;System.Design.dll;System.Web.dll;System.Web.Services.dll;System.Xml.Linq.dll;
System.Data.DataSetExtensions.dll;System.Configuration.dll;System.Configuration.Install.dll;System.ServiceProcess.dll;
System.Runtime.Serialization.Formatters.Soap.dll;System.Windows.Forms.dll
$(CURRENT_DIRECTORY) $(NAME_PART) $(FULL_CURRENT_PATH)
@echo off
csc /target:exe /out:" $(CURRENT_DIRECTORY)""$(NAME_PART)".exe$(FULL_CURRENT_PATH)
"$(CURRENT_DIRECTORY)""$(NAME_PART)".exe &PAUSE
2. 运行
cmd /c "$(CURRENT_DIRECTORY)$(NAME_PART).exe" &PAUSE
3. AStyle
cmd /k Astyle.exe --style=allman -N "$(FULL_CURRENT_PATH)" &EXIT
4. notepad++ 列编辑,列模式
按下alt+shift,用鼠标进行选择
5. notepad++ 环境变量
FULL_CURRENT_PATH | : E:\my Webmain\welcome.html |
CURRENT_DIRECTORY | : E:\my Webmain |
FILE_NAME | : welcome.html |
NAME_PART | : welcome |
EXT_PART | : html |
NPP_DIRECTORY | : the full path of directory which locates your notepad++.exe |
CURRENT_WORD | : it gives the word(s) you selected in Notepad++. |
调用的形式如:$(NAME_PART) *注意:这里是'('不是'{'
转载于:https://www.cnblogs.com/IS2120/archive/2011/07/18/6746031.html
最后
以上就是调皮铅笔为你收集整理的notepad++ c# ide 配置的全部内容,希望文章能够帮你解决notepad++ c# ide 配置所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复