はじめに
Visual Studio 2015でソリューションをビルドした際に、以下のエラーになる場合があります。
warning MSB8012: TargetPath(xxx) does not match the Linker's OutputFile property value (xxx). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
対処方法
リンクの出力ファイルの指定がプロジェクト名と一致しない出力ファイル名を指定していた場合、MSB8012警告が出力されます。
「リンカー」→「全般」→出力ファイルに以下を指定すると警告が消えます。
$(OutDir)$(TargetName)$(TargetExt)