warning MSB8030: The linker switch "Minimum Required Version" requires "SubS

In the project properties, under Linker -> System, make sure that you set the SubSystem property (either to Console for console applications, or to Windows for DLLs and non-console applications).

If you use common property sheets (*.props) to set project properties across all of your projects, you can add something like this to make sure that SubSystem is assigned a valid value if the project doesn't specify one explicitly.

 

在项目属性中的Linker->System下,确保设置了子系统属性(对于控制台应用程序,设置为控制台,对于DLL和非控制台应用程序,设置为Windows)。

如果使用公共属性表(*.props)在所有项目中设置项目属性,则可以添加类似这样的内容,以确保在项目未显式指定值的情况下为子系统分配有效值。

posted on 2019-05-26 22:34  lydstory  阅读(719)  评论(0编辑  收藏  举报

导航