Edit

MSB3491 diagnostic code

This article describes the MSB3491 error code.

Message text

MSB3491: Could not write lines to file 'value'. 'value'

Description

This error occurs when MSBuild tries to write to a file, but the operating system returns an error.

Resolution

The standard output message text is followed by additional information from the operating system. Look to the additional information provided by the operating system to determine the cause of the problem.

Applies to

All versions of MSBuild