MapControl with Winform

cleon brown 1 Reputation point

Im working with a Winform Application that contains a Host Element with child UserControl with a Mapcontrol. I am able to debug/start the application just fine; however, when I try to publish the application I received the following error when trying to install it: "Downloading file:///C:/Users/xxx/Documents/Visual Studio 2019/Projects/WindowsFormsApp1/publish/Application Files/WindowsFormsApp1_1_0_0_12/Microsoft.Toolkit.Win32.UI.XamlHost.dll.deploy did not succeed." and

"+ Could not find file 'C:\Users\xxx\Documents\Visual Studio 2019\Projects\WindowsFormsApp1\publish\Application Files\WindowsFormsApp1_1_0_0_12\Microsoft.Toolkit.Win32.UI.XamlHost.dll.deploy'."

the second error is because of the first. Can you assist me in determine the cause of this issue?

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,823 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,209 questions
{count} votes