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

后端 未结 8 1832
忘掉有多难
忘掉有多难 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:05

    See also here Stackoverflow MSB8012. What worked for me when converting a VS2008 C++ project to VS2012: right click the project in solution explorer, select properties, in the pop-up: configuration properties, linker, general. Select Output file on the right, this gives a drop-down, select inherent from parent or project defaults. Click apply. This gives the default linker setting: $(OutDir)$(TargetName)$(TargetExt). Re-build the project and the warning should no longer appear.

提交回复
热议问题