gpt4 book ai didi

c# - 错误 '' 'csc '' is not recognized as an internal or external cmd,operable program or batch file'

转载 作者:太空宇宙 更新时间:2023-11-03 12:59:31 24 4
gpt4 key购买 nike

考虑:

class First
{
static void Main()
{
System.Console.WriteLine("piyush");
}
}

我首先通过开始菜单启动开发人员命令提示符 → 优化程序Visual Studio 2013Visual Studio 工具开发人员命令提示符

这在开始时显示:

ERROR: Cannot determine the location of the VS Common Tools folder.
C:\Program Files (x86)\Microsoft Visual Studio 12.0>

echo 命令仅显示以下给定的内容:

%VS120COMNTOOLS%

过了一会儿,它也自动关闭了。

set VS的结果是:

VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\

另外,有没有办法编译和运行上面的程序,因为它可以在 Eclipse 中实现。不依赖于开发人员命令提示的核心 Java?

最佳答案

您的路径 环境变量应指向以下路径:

C:\Windows\Microsoft.NET\Framework64\vX.X.XXX

或者您也可以浏览到以下路径并运行 csc.exe:

csc C:/Dot.Net/First.cs

关于c# - 错误 '' 'csc '' is not recognized as an internal or external cmd,operable program or batch file',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32768063/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com