Skip to content

Build Error: When using with Xamarin.Forms #72

@ghost

Description

When trying to using Xamairn.Forms to create addin UI. I am getting following build error:

Error MSB4096: The item "obj/Debug/net461/_Manifest.addin.xml" in item list "EmbeddedResource" does not define a value for metadata "TargetPath". In order to use this metadata, either qualify it by specifying %(EmbeddedResource.TargetPath), or ensure that all items in this list define a value for this metadata.

This was working fine until 0.4.3 so my best guess is it is caused by this commit: dd12038#diff-bdc8ea55a71e0c73099996196023e145

Steps To Reproduce:

  1. Create a new addin project
  2. Add the following code in the csproj file:
<Target Name="DisplayMessages" BeforeTargets="BeforeCompile">
      <ItemGroup>
        <Message Include="@(EmbeddedResource)" Condition="'%(TargetPath)' != ''" />
        </ItemGroup>
 </Target>

Similar kind of code is used by Xamarin.Forms build task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions