【已解决】‘csharp‘ is not recognized as an internal or external command, operable program or batch file.

文章讲述了在修改乱码后,如何在Coderunner中设置正确配置以运行C#文件,包括扩展文件、勾选选项和配置命令行路径,最终实现HelloWorld的输出,作为C#入门步骤。
摘要由CSDN通过智能技术生成

问题描述

接上一条,完成乱码的修改之后,突然发现输出的不是我需要的内容!这就很不解!如下图
在这里插入图片描述

原因分析

从字面上理解就是说内部没有识别到可以运行的程序或者文件。需要有一个代码告诉他我们这个是有文件可以运行的。所以需要找到这个梯子就要在code runner 添加。

解决方法

第一步:扩展文件那边找到Code runner扩展。
在这里插入图片描述
第二步:勾选第四步,点击第五步。
在这里插入图片描述
第三步:修改成如下图所示的情况即可。
cd $dir && dotnet run $fileName

在这里插入图片描述
第四步:返回并点击运行输出台正常显示Hello World!
在这里插入图片描述

总结

好了,运行了Hello World算是一只脚进入了C#了。相互学习!

"vim" is not recognized as an internal or external command, operable program or batch file. This error typically occurs when the "vim" command-line text editor is not installed or not properly configured on your system. Here are a few steps you can take to resolve this issue: 1. Install Vim: If you haven't installed Vim yet, you can download it from the official Vim website (https://www.vim.org/download.php) and follow the installation instructions for your operating system. Make sure to add Vim to your system's PATH environment variable during the installation process. 2. Check PATH variable: If you have already installed Vim, it's possible that its installation directory is not included in your system's PATH environment variable. To check this, open a command prompt and run the following command: ``` echo %PATH% ``` Look for the directory where Vim is installed (e.g., "C:\Program Files\Vim") in the output. If it's missing, you need to add it manually: - Open the System Properties dialog by right-clicking on My Computer/This PC and selecting "Properties". - Click on "Advanced system settings" or "Advanced" tab. - Click on the "Environment Variables" button. - In the "System variables" section, select the "Path" variable and click on "Edit". - Add the directory path of your Vim installation (e.g., "C:\Program Files\Vim") at the end of the variable value, separating it from the previous entry with a semicolon (;). - Click "OK" to save the changes. 3. Restart your command prompt: After making any changes to the PATH variable, you need to close and reopen your command prompt for the changes to take effect. Once you've done that, try running the "vim" command again to see if it works. If the issue persists, please ensure that you have installed Vim correctly and that it is accessible from the command prompt.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

聪明不喝牛奶

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值