Edit

Share via


MSB3331 diagnostic code

This article describes the MSB3331 error code.

Message text

MSB3331: Unable to apply publish properties for item 'item-name'.

Description

This error occurs in the ResolveManifest task, which collects all the information, artifacts, and resources to generate a ClickOnce manifest. The error occurs when there's a problem with something that was required for the manifest generation.

Resolution

Turn on verbose diagnostics (-v:diag), or generate a binary log and view it in the Structured Log Viewer. Find the place in the log where the ResolveManifest task is invoked. Check the input to the ResolveManifest task and verify the correctness and validity of all the inputs.

If you changed the publishing settings in Visual Studio, review them for errors. In .NET Framework projects, go to Project Properties > Publish > Application Files, and review the settings. Try selecting the Reset All button to see if the project builds and publishes with default settings.

For more information, see Specify files to publish.

Applies to

All versions of MSBuild