I have a VSTO Excel Add-ins built on Net Framework 4.7.2. In this Addin, I am using some projects built on NetCore 2.0 and there were references to Microsoft.Data.SqlClient in that NetCore project.
While I'm executing Add-In on the development machine everything is ok. But when I'd like to publish my add-in using ClickOnce Add-In does not work because of missing Microsoft.Data.SqlClient.SNI.x86 and x64 DLLs. I am adding Microsoft.Data.SqlClient to my project using NuGet solution package manager.
I am seeing "Microsoft.Data.SqlClient.SNI.x86" and x64 DLLs in my bin folder, but they are not included in to publish folder.
Does anybody know how to force ClickOnce to add those dlls to the publish folder?