0

I have a library in .winmd format and it works very well in Debug profile but when I create a new profile (copy from Debug), it throws an exception that the module cannot found. Did anyone get the same problem like me? When I changed to Debug again. It still works fine.

UPDATE

<ItemGroup>
    <Reference Include="TreeViewControl">
      <HintPath>..\..\..\lib\TreeViewControl\TreeViewControl.winmd</HintPath>
    </Reference>
  </ItemGroup>
Bui Quang Huy
  • 1,784
  • 2
  • 17
  • 50
  • Could you provide more info? For example the contents of your csproj, so that we can see how the library is referenced? – Martin Zikmund Mar 07 '18 at 06:44
  • because the content of csproj is to long so I just post a section that refenrence my project to winmd file – Bui Quang Huy Mar 07 '18 at 06:51
  • I directly add reference to the '.winmd' file, the content of `ItemGroup` looks like this ` False ..\RuntimeComponent1\bin\x86\Debug\RuntimeComponent1.winmd `. I compiled my project successfully. – Xie Steven Mar 08 '18 at 05:56

0 Answers0