Disable warning MSB8012

Viewed 507

I want to separate the objects files from the output binary file in Visual Studio 2017 but I then I get the warning MSB8012 - TargetPath does not match the Library's OutputFile property value.

Is there some way to skip this warning?

1 Answers

Is there some way to skip this warning?

If you still want this warning MSB8012 not showing in VS, you can add this into xxxx.xxxproj file:

<PropertyGroup>
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages>
</PropertyGroup>

Note this is a new feature since VS2017.

In addition, just as Hans said, you can just fix this warning,you can refer to this similar case to try.

Hope it could help you.

Related