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

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

    I managed to fix a similar issue by editing the vcxproj file manually.

    The OutDir and TargetName settings were at the bottom of the project file.

       ...
          
            $(OUTPUT_DIRECTORY)\
            $(ProjectDir)\$(Configuration)\$(ProjectName)\
            $(ProjectName)
          
       
    

    Moving the block above the ClCompile block solved the issue.

提交回复
热议问题