<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080325#M10291</link>
    <description>&lt;P&gt;Can you provide more detail about your project/application type or even attach a small repro project?&lt;/P&gt;&lt;P&gt;Deployment info for .NET Framework and .NET Core/.NET is available &lt;A href="https://developers.arcgis.com/net/license-and-deployment/deployment/#runtime-dlls-and-resources-for-wpf-apps" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, but if you find it's insufficient we'd love to enhance it.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 16:06:17 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2021-07-19T16:06:17Z</dc:date>
    <item>
      <title>Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080193#M10290</link>
      <description>&lt;P&gt;When i am trying to consume a dll that uses an mmpk in order to use its locator, i get the following error "The type initializer for 'RuntimeCoreNet.GeneratedWrappers.CoreMobileMapPackage' threw an exception."&amp;nbsp; the inner exception message shows "Invalid ArcGISRuntime deployment folder, missing folder arcgisruntime100.11\client32"&lt;/P&gt;&lt;P&gt;The problem is that i am forced to use a windows form to call the locator's&amp;nbsp; dll, otherwise the locator's dll works fine (i.e a wpf application)&lt;/P&gt;&lt;P&gt;Any ideas? i tried using ilmerge with no succes since i cannot find any documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 11:49:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080193#M10290</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2021-07-19T11:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080325#M10291</link>
      <description>&lt;P&gt;Can you provide more detail about your project/application type or even attach a small repro project?&lt;/P&gt;&lt;P&gt;Deployment info for .NET Framework and .NET Core/.NET is available &lt;A href="https://developers.arcgis.com/net/license-and-deployment/deployment/#runtime-dlls-and-resources-for-wpf-apps" target="_blank" rel="noopener"&gt;here&lt;/A&gt;, but if you find it's insufficient we'd love to enhance it.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 16:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080325#M10291</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-07-19T16:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080370#M10292</link>
      <description>&lt;P&gt;Hi there and thank you very much for you prompt reply. To put it simply&amp;nbsp; i&amp;nbsp;am trying to call the below dll (wpf library class)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;    public class MapViewModel : INotifyPropertyChanged
    {
        //Static Fields
        public static LocatorTask _geocoder;

        public event PropertyChangedEventHandler PropertyChanged;
        /// &amp;lt;summary&amp;gt;
        /// Raises the &amp;lt;see cref="MapViewModel.PropertyChanged" /&amp;gt; event
        /// &amp;lt;/summary&amp;gt;
        /// &amp;lt;param name="propertyName"&amp;gt;The name of the property that has changed&amp;lt;/param&amp;gt;
        protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            var propertyChangedHandler = PropertyChanged;
            if (propertyChangedHandler != null)
                propertyChangedHandler(this, new PropertyChangedEventArgs(propertyName));
        }

        public static async Task ConfigureStreetMapPremium()
        {
            // Get the path to the map package
            string streetMapPremiumPath = @"C:\Users\*********\source\repos\*****\****\bin\Debug\myMap.mmpk";
            //string streetMapPremiumPath = System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(), "myMap.mmpk");
            //string streetMapPremiumPath = AppDomain.CurrentDomain.BaseDirectory + "myMap.mmpk";
            try
            {
                // Load the package
                MobileMapPackage streetMapPremiumPackage = await MobileMapPackage.OpenAsync(streetMapPremiumPath);

                // Geocoder from streetMapPremiumPackage
                _geocoder = streetMapPremiumPackage.LocatorTask;
                _geocoder.LoadAsync();
            }

            catch (Exception ex)
            {
                // Handle any exception
                System.Windows.MessageBox.Show(ex.Message, "Error opening package");
                return;
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;using a button like below (windows forms)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private async void button1_Click(object sender, EventArgs e)
        {
            await Locator.MapViewModel.ConfigureStreetMapPremium();
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 17:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080370#M10292</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2021-07-19T17:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080389#M10295</link>
      <description>&lt;P&gt;Can you also share the contents of the csproj file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 17:37:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080389#M10295</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-07-19T17:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080568#M10298</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&amp;gt;
  &amp;lt;Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /&amp;gt;
  &amp;lt;PropertyGroup&amp;gt;
    &amp;lt;Configuration Condition=" '$(Configuration)' == '' "&amp;gt;Debug&amp;lt;/Configuration&amp;gt;
    &amp;lt;Platform Condition=" '$(Platform)' == '' "&amp;gt;AnyCPU&amp;lt;/Platform&amp;gt;
    &amp;lt;ProjectGuid&amp;gt;{399832F2-7852-4DC0-B948-4AB750F7E074}&amp;lt;/ProjectGuid&amp;gt;
    &amp;lt;OutputType&amp;gt;Library&amp;lt;/OutputType&amp;gt;
    &amp;lt;AppDesignerFolder&amp;gt;Properties&amp;lt;/AppDesignerFolder&amp;gt;
    &amp;lt;RootNamespace&amp;gt;Locator&amp;lt;/RootNamespace&amp;gt;
    &amp;lt;AssemblyName&amp;gt;Locator&amp;lt;/AssemblyName&amp;gt;
    &amp;lt;TargetFrameworkVersion&amp;gt;v4.6.1&amp;lt;/TargetFrameworkVersion&amp;gt;
    &amp;lt;FileAlignment&amp;gt;512&amp;lt;/FileAlignment&amp;gt;
    &amp;lt;Deterministic&amp;gt;true&amp;lt;/Deterministic&amp;gt;
    &amp;lt;NuGetPackageImportStamp&amp;gt;
    &amp;lt;/NuGetPackageImportStamp&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&amp;gt;
    &amp;lt;DebugSymbols&amp;gt;true&amp;lt;/DebugSymbols&amp;gt;
    &amp;lt;DebugType&amp;gt;full&amp;lt;/DebugType&amp;gt;
    &amp;lt;Optimize&amp;gt;false&amp;lt;/Optimize&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Debug\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;DEBUG;TRACE&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;WarningLevel&amp;gt;4&amp;lt;/WarningLevel&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "&amp;gt;
    &amp;lt;DebugType&amp;gt;pdbonly&amp;lt;/DebugType&amp;gt;
    &amp;lt;Optimize&amp;gt;true&amp;lt;/Optimize&amp;gt;
    &amp;lt;OutputPath&amp;gt;bin\Release\&amp;lt;/OutputPath&amp;gt;
    &amp;lt;DefineConstants&amp;gt;TRACE&amp;lt;/DefineConstants&amp;gt;
    &amp;lt;ErrorReport&amp;gt;prompt&amp;lt;/ErrorReport&amp;gt;
    &amp;lt;WarningLevel&amp;gt;4&amp;lt;/WarningLevel&amp;gt;
  &amp;lt;/PropertyGroup&amp;gt;
  &amp;lt;ItemGroup&amp;gt;
    &amp;lt;Reference Include="PresentationCore" /&amp;gt;
    &amp;lt;Reference Include="PresentationFramework" /&amp;gt;
    &amp;lt;Reference Include="System" /&amp;gt;
    &amp;lt;Reference Include="System.Core" /&amp;gt;
    &amp;lt;Reference Include="System.Device" /&amp;gt;
    &amp;lt;Reference Include="System.Net.Http.WebRequest" /&amp;gt;
    &amp;lt;Reference Include="System.Xaml" /&amp;gt;
    &amp;lt;Reference Include="System.Xml.Linq" /&amp;gt;
    &amp;lt;Reference Include="System.Data.DataSetExtensions" /&amp;gt;
    &amp;lt;Reference Include="Microsoft.CSharp" /&amp;gt;
    &amp;lt;Reference Include="System.Data" /&amp;gt;
    &amp;lt;Reference Include="System.Net.Http" /&amp;gt;
    &amp;lt;Reference Include="System.Xml" /&amp;gt;
    &amp;lt;Reference Include="WindowsBase" /&amp;gt;
  &amp;lt;/ItemGroup&amp;gt;
  &amp;lt;ItemGroup&amp;gt;
    &amp;lt;Compile Include="MapViewModel.cs" /&amp;gt;
    &amp;lt;Compile Include="Properties\AssemblyInfo.cs" /&amp;gt;
  &amp;lt;/ItemGroup&amp;gt;
  &amp;lt;ItemGroup&amp;gt;
    &amp;lt;PackageReference Include="Esri.ArcGISRuntime"&amp;gt;
      &amp;lt;Version&amp;gt;100.11.2&amp;lt;/Version&amp;gt;
    &amp;lt;/PackageReference&amp;gt;
    &amp;lt;PackageReference Include="Esri.ArcGISRuntime.runtimes.win"&amp;gt;
      &amp;lt;Version&amp;gt;100.11.2&amp;lt;/Version&amp;gt;
    &amp;lt;/PackageReference&amp;gt;
  &amp;lt;/ItemGroup&amp;gt;
  &amp;lt;Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /&amp;gt;
&amp;lt;/Project&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Jul 2021 21:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1080568#M10298</guid>
      <dc:creator>SOTIRIOSTRIANTOS</dc:creator>
      <dc:date>2021-07-19T21:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load DLL referencing other native DLL (RuntimeCoreNet100_11_2.dll)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1083351#M10314</link>
      <description>&lt;P&gt;A couple of options for resolving this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reference the Esri.ArcGISRuntime.WPF NuGet package from your application project which will ensure the appropriate components are copied to the output folder.&lt;/LI&gt;&lt;LI&gt;Set the&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/wpf/api-reference/html/P_Esri_ArcGISRuntime_ArcGISRuntimeEnvironment_InstallPath.htm" target="_blank" rel="noopener"&gt;ArcGISRuntimeEnvironment.InstallPath Property&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 27 Jul 2021 23:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-dll-referencing-other-native-dll/m-p/1083351#M10314</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-07-27T23:47:33Z</dc:date>
    </item>
  </channel>
</rss>

