Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the MSB3686 error code.
Message text
MSB3686: Unable to create Xaml task. Compilation failed.
Description
The XamlTaskFactory creates a task at build time from the specified XML. It tries to compile a source file generated from an XML file specified in the Task
element of the UsingTask
element and, if the compilation files, this error occurs. It is followed by more specific error information from the compiler.
Caution
XamlTaskFactory
is not recommended for new development. It is not supported in .NET Core and .NET 5 and later.
Resolution
Look to the following lines in the MSBuild output or log to see what the compilation error is. Identify the source XML file in the Task
element of the UsingTask
element. Review the XML input for correctness.
Applies to
All versions of MSBuild