warning MSB8012 : make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile)

后端 未结 8 1858
忘掉有多难
忘掉有多难 2020-12-02 14:25

I am getting the following error when building my code.

C:\\Program Files (x86)\\MSBuild\\Microsoft.Cpp\\v4.0\\Microsoft.CppBuild.targets(990,5):

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 15:23

    I solved this by comparing the project to a very similar project that was working properly. All of the settings in the project properties matched but I found the following extra lines in the vcxproj file of the malfunctioning project:

    
       .\MCtlDrvX.lib
    
    

    I deleted them and the message went away and the output went to the directory specified in the project settings.

提交回复
热议问题