码迷,mamicode.com
首页 > Windows程序 > 详细

C# Sublime text3 环境配置

时间:2019-01-31 15:22:57      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:img   text   variant   art   uil   变量   str   text3   tar   

环境变量设置

5.0

C:\Program Files\MSBuild\12.0\Bin

6.0

C:\Windows\Microsoft.NET\Framework64\v4.0.30319;

 

定制C#.sublime-build文件

Tools--Build System--New Build System

复制粘贴以下代码,保存文件名:C#.sublime-build

技术分享图片
 1 {
 2     "shell_cmd": "csc /out:\"${file_path}/${file_base_name}.exe\" \"${file}\"",
 3     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
 4     "working_dir": "${file_path}",
 5     "selector": "source.cs",
 6     "variants":
 7         [
 8             {
 9                 "name": "Build & Run",
10                 "shell_cmd": "csc /out:\"${file_path}/${file_base_name}.exe\" \"${file}\" && start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
11                 "working_dir": "${file_path}"
12             },
13             {
14                 "name": "Run",
15                 "shell_cmd": "start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
16                 "working_dir": "${file_path}"
17             },
18             {
19                 "name": "Build (Form)",
20                 "shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:\"${file_path}/${file_base_name}.exe\" \"${file}\"",
21                 "working_dir": "${file_path}"
22             },
23             {
24                 "name": "Build & Run (Form)",
25                 "shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:\"${file_path}/${file_base_name}.exe\" \"${file}\" && start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
26                 "working_dir": "${file_path}"
27             },
28             {
29                 "name": "Run (Form)",
30                 "shell_cmd": "start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
31                 "working_dir": "${file_path}"
32             },
33         ]
34 }
C#.sublime-build

 

编译运行

选择编译运行,Build Wtih

Ctrl + Shift + B

编译运行,Build

Ctrl + B 

C# Sublime text3 环境配置

标签:img   text   variant   art   uil   变量   str   text3   tar   

原文地址:https://www.cnblogs.com/GoldenEllipsis/p/10342003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!