C#环境搭建,以及C#编译器的使用

时间:2018-10-01 13:10:37   收藏:0   阅读:234

搭建nuget包管理器

HomePage

windows环境下,可以下载安装包:Download

使用最新版本的C#编译器

C# 5.0之后,微软将csc开源并独立运行,其项目命名为——roslyn

Get the C# compiler before v5.0

C# 5.0 之前的版本,编译器csc集成在 .Net Framework 中,一般在以下目录中可以找到:

C:\Windows\Microsoft.NET\Framework64\v[版本号]\csc.exe

Run the compiler of .Net Core 2.0+

一般可以通过 dotnet 命令直接调用C#编译器,因为编译器已经作为dll包含在了 .Net Core 的安装包中,路径在:

Get the latest csc.exe on Windows-OS

nuget install Microsoft.Net.Compilers # Install C# and VB compilers
nuget install Microsoft.CodeAnalysis # Install Language APIs and Services

 

原文:https://www.cnblogs.com/brt3/p/9734519.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!