小さい頃はエラ呼吸

いつのまにやら肺で呼吸をしています。


【VS2015】warning MSB8012: TargetPath(xxx) does not match the Linker's OutputFile property value (xxx).

www.visualstudio.com

はじめに

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警告が出力されます。
f:id:replication:20160407002030j:plain
「リンカー」→「全般」→出力ファイルに以下を指定すると警告が消えます。

$(OutDir)$(TargetName)$(TargetExt)