简体   繁体   中英

Command Line Prompt Visual Studio

I'm hoping someone can help.

In the first image, you can see that the directory command (ie: dir) shows that the file vbc helloworld.vb is definitely in the source folder.

在此处输入图片说明

In the second image, you can see that the file cannot be found when I try to run vbc helloworld.vb , even though the path is correct.

在此处输入图片说明

Can anyone let me know what is going wrong?

I also know the vb.exe is in C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319

I added that to the PATH in This PC Environmental Variables, but that didn't do anything at all.

Actually, I have no idea what to do now.

Also, I want to use Visual Studio Command line without using Visual Studio itself. I know it's easier to use Visual Studio Module itself, and that using the command line is old fashioned, but I still want to learn how to use the Command prompt with vb.Net.

Hope you can help.

Thanks.

Your filename shouldn't contain the command vbc.

Rename your file from "vbc helloworld.vb" to helloworld.vb, and then run: vbc helloworld.vb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM