如何运行罗斯林,而不是在命令行CSC.EXE? [英] How to run Roslyn instead csc.exe from command line?

查看:638
本文介绍了如何运行罗斯林,而不是在命令行CSC.EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装VS 2015年后,在命令行中运行CSC.EXE会导致显示此消息控制台:

After installing VS 2015, running csc.exe from command line causes this message to be displayed to console:

提供该编译器作为Microsoft(R)的.NET框架中,
的一部分,但只支持语言版本至C#5,这不再是
最新版本。对于支持C#
编程语言的较新版本的编译器,见
的http://去。 microsoft.com/fwlink/?LinkID=533240

This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240

链接重定向到罗斯林的由GitHub存储库。结果
以便,是一个从命令行中运行支持新版本的编译器(罗斯林)的方式?

The link redirects to Roslyn's repository at GitHub.
So, is the a way to run "compilers that support newer versions" (Roslyn) from command line?

推荐答案

这听起来像你的道路是不恰当的,基本上是这样。如果打开了VS2015开发人员命令提示符你应该有 $ ProgramFilesx86 $ \MSBuild\14.0\bin 在路径的早期 - 和 CSC.EXE 在里面的的罗斯林。

It sounds like your path is inappropriate, basically. If you open the "Developer Command Prompt for VS2015" you should have $ProgramFilesx86$\MSBuild\14.0\bin early in your path - and the csc.exe in there is Roslyn.

我怀疑你是在<$运行的版本C $ C> C:\Windows\Microsoft.NET\Framework\4.0.30319 或类似的 - 这是传统的,基本

I suspect you're running the version in c:\Windows\Microsoft.NET\Framework\4.0.30319 or similar - which is the legacy one, basically.

这篇关于如何运行罗斯林,而不是在命令行CSC.EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆