-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f3bc76
commit 1c24e7a
Showing
5 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
27 changes: 27 additions & 0 deletions
27
c-bian-cheng-ru-men/01vscode-bian-ji-qi-shang-bian-yi-c.md
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,27 @@ | ||
# 01、VScode编辑器上编译C\# | ||
|
||
### .NET 下载 <a href="#h_576402546_0" id="h_576402546_0"></a> | ||
|
||
C#语言是基于.NET框架之下编译和运行。这些实现通常打包成一个软件开发包(SDK, Software Development Kit),其中包含语言编译器、执行引擎、语言可访问的功能架构以及其他的工具。 | ||
|
||
.NET 下载地址:[.NET 下载(Linux、macOS 和 Windows)](https://link.zhihu.com/?target=https%3A//dotnet.microsoft.com/zh-cn/download/dotnet) (推荐下载.NET Core) | ||
|
||
### VS Code 编辑器安装 <a href="#h_576402546_1" id="h_576402546_1"></a> | ||
|
||
VS Code具有开源、轻量、免费、简洁等特点。VSCode依赖命令行(Dotnet CLI "Command-Line Interface" )创建初始的C#程序基架编译和运行。 | ||
|
||
VS Code下载地址:[Download Visual Studio Code - Mac, Linux, Windows](https://link.zhihu.com/?target=https%3A//code.visualstudio.com/Download) | ||
|
||
### VScode上编译C#文件 <a href="#h_576402546_2" id="h_576402546_2"></a> | ||
|
||
下载插件:C# | ||
|
||
<figure><img src="../.gitbook/assets/1730871284206.png" alt=""><figcaption></figcaption></figure> | ||
|
||
在桌面新建一个工程文件夹,并且VS Code中打开,在菜单栏中打开终端,输入dotnet new console 初始化程序。 | ||
|
||
<figure><img src="../.gitbook/assets/1730871561423.png" alt=""><figcaption></figcaption></figure> | ||
|
||
调出终端,输入dotnet run 运行。 | ||
|
||
<figure><img src="../.gitbook/assets/1730871608328.png" alt=""><figcaption></figcaption></figure> |