I started a new C ++ project in Visual Studio 2010, and I came across the warning MSB8012 after I changed the Output File parameter under "Project Properties" β "Configuration Properties" β "Linker-> General". By default, this is $(OutDir)$(TargetName)$(TargetExt) ), but I need to change it to $(OutDir)Bin\$(ConfigurationName)\$(TargetName)$(TargetExt) .
If I do this, I am faced with a warning. I have never had this problem in Visual Studio 2005 and 2008.
The error message tells me that my TargetPath does not match the value of the Linker OutputFile property. The allowed command line looks exactly the way I want, but the TargetPath value is missing in the Bin\$(ConfigurationName) . Where exactly is the value of the TargetPath property set / collected?
The message contains To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile). Does this mean that the OutputFile property can only have a default value?
How can I resolve this warning without resetting the output file property or using some kind of workaround?
Hatch source share