简体   繁体   English

Visual Studio 没有运行 Hello World 脚本 - 即使是它包含在构建中的脚本

[英]Visual Studio isn’t running a Hello World script - even the one that it included in the build

I've began to use Visual Studio, and I'm trying to make a simple hello world script.我已经开始使用 Visual Studio,并且正在尝试制作一个简单的 hello world 脚本。 However, when i try to run the hello world script that they included, nothing shows up - except for 437 errors, all along the lines of: cannot open source file “ctype.h” I assume that it's doing this for every single one of the extra files, however, I'm not too sure.但是,当我尝试运行它们包含的 hello world 脚本时,什么都没有显示 - 除了 437 错误,所有这些都是: cannot open source file “ctype.h”我假设它正在为每一个执行此操作额外的文件,但是,我不太确定。 I've been looking everywhere for help on this - so some help here would be much appreciated: Thank you :)我一直在到处寻求帮助 - 所以这里的一些帮助将不胜感激:谢谢:)

It seems that you couldn't install or use the windows SDK correctly.您似乎无法正确安装或使用 windows SDK。 I suggest you could try to reinstall the windows sdk.我建议您可以尝试重新安装 windows sdk。 Open the VS Installer window, you could click on "Individual Components", then scroll quite a ways down to get to the "SDKs, libraries and frameworks" section.打开 VS Installer window,您可以单击“Individual Components”,然后向下滚动很长一段距离以到达“SDKs、libraries and frameworks”部分。 In there, you could choose download and install the SDK which you want.在那里,您可以选择下载并安装您想要的 SDK。

在此处输入图像描述

And then right click the project-> Properties -> General -> Windows SDK Version to set the Windows SDK.然后右键项目->属性->常规->Windows SDK版本设置Windows ZF20E3C5E5E54C083D6FAZDZF23489CE3AA9B6406EBB28E0CDA430Z。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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