How to run Roslyn instead csc.exe from command line?

前端 未结 1 1607
北荒
北荒 2020-12-03 07:16

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

This compiler is provided as part of the M

相关标签:
1条回答
  • 2020-12-03 07:41

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

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

    0 讨论(0)
提交回复
热议问题