I am writing an VSTO addin for Visio. The target framework is 4.7.2
When compile the project, it shows a build error as the title.
I've tried to add
<IncludePackageReferencesDuringMarkupCompilation>true</IncludePackageReferencesDuringMarkupCompilation>
<UseWPF>true</UseWPF>
But it doesn't work.
Anyone could help me workaround this?