嗨,我刚刚开始使用 visual studio 2012 和 windows 8 学习 c#,教程提供了一些 .cs 文件,但没有解释如何运行它们。这是本教程中的所有命令行内容。 This stack overflow answer 给出了最简单的方法(在回答其他人的类似问题时)。
If you already installed Visual Studio, just: Click Start, point to All Programs, point to Microsoft Visual Studio, point to Visual Studio Tools, and then click Visual Studio Command Prompt and there you have your command line box where you compile as follows:
csc PathToYourCsSource
我找不到 visual studio 工具。我在 Windows 8 的搜索中输入了它。谢谢
最佳答案
更容易:运行 Visual Studio -> 创建一个新的 C# 控制台项目。
这将创建一个包含简单 Program.cs 文件的项目。您只需复制/粘贴其中,然后单击 F5 运行该项目。
关于c# - 运行 .cs 文件 - visual studio 2012,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18038389/