[Solved] warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.

Questions are as follows:

warning MSB8004: Output Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.

In fact, this problem is very simple, because the English translation is enough, and the output path lacks a backslash at the end.

 

Solution: Project-Project Properties-Configuration Properties-General-Output Path, the current path is as shown below:

Change it to

That’s it.

 

Questions are as follows:

error MSB4018: The “VCMessage” task failed unexpectedly.

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)

at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)

at System.String.Format(IFormatProvider provider, String format, Object[] args)

at Microsoft.Build.Shared.ResourceUtilities.FormatString(String unformatted, Object[] args)

at Microsoft.Build.Utilities.TaskLoggingHelper.FormatString(String unformatted, Object[] args)

at Microsoft.Build.Utilities.TaskLoggingHelper.FormatResourceString(String resourceName, Object[] args)

at Microsoft.Build.Utilities.TaskLoggingHelper.LogWarningWithCodeFromResources(String messageResourceName, Object[] messageArgs)

at Microsoft.Build.CPPTasks.VCMessage.Execute()

at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

Probably the error looks like this. This error is mainly in the output path of the linker. I saw the solution from an article. The original address of the article is as follows:

https://stackoverflow.com/questions/11985085/how-do-i-fix-error-msb4018-in-visual-studio-2010/17771120

 

Solution: Project-Project Properties-Configuration Properties-Linker-General-Output File, it turned out to look like the following figure

Click the option of <Inherit>, and the result is as shown in the figure below:

Run again, success! Hope to be able to some people

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *