<?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: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110357#M10558</link>
    <description>&lt;P&gt;Nice to know.&amp;nbsp; The effort I originally discovered this under was for a migration to another project.&amp;nbsp; We had the ESRI Runtime access contained in a library so it could be swapped out if needed. This had it deployed as a shared resource.&amp;nbsp; The new project didn't see the need to use a shared library so it was integrated into the project which then removed the need to specify the "InstallPath"&amp;nbsp; hence why I did not pursue the issue any farther.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 17:28:31 GMT</pubDate>
    <dc:creator>TroyAvery1</dc:creator>
    <dc:date>2021-10-22T17:28:31Z</dc:date>
    <item>
      <title>Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077915#M10266</link>
      <description>&lt;P&gt;Assembly: Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.11.0&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/net/wpf/api-reference/html/P_Esri_ArcGISRuntime_ArcGISRuntimeEnvironment_InstallPath.htm" target="_blank"&gt;https://developers.arcgis.com/net/wpf/api-reference/html/P_Esri_ArcGISRuntime_ArcGISRuntimeEnvironment_InstallPath.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Has anyone noticed that the documentation lists "InstallPath" as a property, but the assembly decomposition does not show it?&lt;/P&gt;&lt;P&gt;(Assembly Esri.ArcGISRuntime, Version=100.11.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86)&lt;/P&gt;&lt;P&gt;Is the runtime still capable of shared deployments?&lt;/P&gt;&lt;P&gt;We run our deployment pointing to a shared location for a couple of different applications.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077915#M10266</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-07-12T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077918#M10267</link>
      <description>&lt;P&gt;I'm assuming you're targeting .NET Core/.NET 5 and not .NET Framework? Unfortunately our documentation doesn't show doc for both (we're actively working on that - stay tuned!), but the property is only available with .NET Framework, since there's now a newer better way to load native libraries dynamically than .NET Framework provided.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you can share your scenario for setting this property, I can help provide you with some equivalent code in .NET Core / NET 5.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077918#M10267</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-07-12T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077922#M10268</link>
      <description>&lt;P&gt;Yes, this is part of a transition for a .NET Framework to .NET 5&lt;/P&gt;&lt;P&gt;Our previous usage was fairly simple, we created an installer for the shared items and then in the consuming application before we begin using the runtime we set the InstallPath to where the shared installation is.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1077922#M10268</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-07-12T17:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1109655#M10549</link>
      <description>&lt;P&gt;I am definitely interested this topic, and one other, related to .NET 5 migration, if anyone can point me in the right direction.&amp;nbsp; Microsoft doc searches keep pointing me back to the old Framework.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Is there a simple way, not hacking into JSON configs, to point Runtime to a particular shared deployment path?&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;Is there a way to tell assembly probing NOT to look for .resource dlls when using Assembly.LoadFrom and Assembly.CreateInstance?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;My gratitude always,&lt;/P&gt;&lt;P&gt;--Mark&lt;/P&gt;&lt;P&gt;Update: I think I finally found what I'm looking for:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dotnet/core/dependency-loading/default-probing" target="_self"&gt;https://docs.microsoft.com/en-us/dotnet/core/dependency-loading/default-probing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 17:22:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1109655#M10549</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-10-22T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110353#M10557</link>
      <description>&lt;P&gt;Replacing Assembly.LoadFrom with&amp;nbsp;AssemblyLoadContext.Default.LoadFromAssemblyPath cleared up the resource DLL problem.&amp;nbsp; Now I'll look into the possibility of using the native dll search options to point to a shared Runtime deployment.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 17:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110353#M10557</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-10-22T17:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110357#M10558</link>
      <description>&lt;P&gt;Nice to know.&amp;nbsp; The effort I originally discovered this under was for a migration to another project.&amp;nbsp; We had the ESRI Runtime access contained in a library so it could be swapped out if needed. This had it deployed as a shared resource.&amp;nbsp; The new project didn't see the need to use a shared library so it was integrated into the project which then removed the need to specify the "InstallPath"&amp;nbsp; hence why I did not pursue the issue any farther.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 17:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110357#M10558</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-10-22T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110359#M10559</link>
      <description>&lt;P&gt;Here's the gist of how to hint .NET Core where to look for native libraries to load:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;
        private static IntPtr runtimeLibPtr = IntPtr.Zero;
        private static IntPtr runtimeLibWpfPtr = IntPtr.Zero;
        private const string version = "100_13";
        private const string InstallPath = @"C:\ArcGISRuntimeInstall\";
        private static IntPtr DllImportResolver(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath)
        {
            string path = $"{InstallPath}x{(Environment.Is64BitProcess ? "64" : "86")}\\{libraryName}";
            if (libraryName == "RuntimeCoreNet" + version + ".dll" &amp;amp;&amp;amp; assembly.FullName == typeof(Esri.ArcGISRuntime.ArcGISRuntimeEnvironment).Assembly.FullName)
            {
                if (runtimeLibPtr == IntPtr.Zero)
                {
                    if (System.Runtime.InteropServices.NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
                        return runtimeLibPtr;
                }
                return runtimeLibPtr;
            }
            else if (libraryName == "RuntimeCoreNet" + version + ".WPF.dll" &amp;amp;&amp;amp; assembly.FullName == typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly.FullName)
            {
                if (runtimeLibWpfPtr == IntPtr.Zero)
                {
                    if (System.Runtime.InteropServices.NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
                        return runtimeLibWpfPtr;
                }
                return runtimeLibWpfPtr;
            }
            return IntPtr.Zero;
        }&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;You would then hook this Dll import resolver up at app startup before calling into any of our APIs:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.Runtime.InteropServices.NativeLibrary.SetDllImportResolver(typeof(Esri.ArcGISRuntime.ArcGISRuntimeEnvironment).Assembly, new System.Runtime.InteropServices.DllImportResolver(DllImportResolver));
System.Runtime.InteropServices.NativeLibrary.SetDllImportResolver(typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly, new System.Runtime.InteropServices.DllImportResolver(DllImportResolver));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 17:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110359#M10559</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-10-22T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110455#M10560</link>
      <description>&lt;P&gt;I've run into two issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Shared resources are still expected to reside in the application folder&lt;/LI&gt;&lt;LI&gt;I'm getting the following error:&amp;nbsp;&lt;P class=""&gt;Unable to find an entry point named 'CoreRT_GeoView_setScreenScale' in DLL 'RuntimeCoreNet100_12.dll'.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 22 Oct 2021 23:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1110455#M10560</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-10-22T23:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111094#M10566</link>
      <description>&lt;P&gt;To clarify, I set up what I thought was a simple test, but if I made a glaring error another set of eyes always helps.&amp;nbsp; I created a deployment which looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Deployment.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/26146iFF3C213B3687C7DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Deployment.png" alt="Deployment.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here's the code for App.xaml.cs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using Esri.ArcGISRuntime;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.Loader;
using System.Threading.Tasks;
using System.Windows;

namespace DeploymentTest
{
	/// &amp;lt;summary&amp;gt;
	/// Interaction logic for App.xaml
	/// &amp;lt;/summary&amp;gt;
	public partial class App : Application
	{

		private static IntPtr runtimeLibPtr = IntPtr.Zero;
		private static IntPtr runtimeLibWpfPtr = IntPtr.Zero;
		private const string DeploymentHome = @"C:\apps";
		private const string RuntimeVersion = "100.12";
		private static string NativeInstallPath;
		private static string DLLversion;

		private void Application_Startup(object sender, StartupEventArgs e)
		{
			try
			{
				string sRuntimeDeployment = "ArcGISRuntimeCore" + RuntimeVersion;
				string sInstallPath = Path.Combine(DeploymentHome, sRuntimeDeployment);
				if (Directory.Exists(sInstallPath))
				{
					NativeInstallPath = Path.Combine(sInstallPath, "runtimes");
					DLLversion = RuntimeVersion.Replace('.', '_');
					NativeLibrary.SetDllImportResolver(typeof(ArcGISRuntimeEnvironment).Assembly, new DllImportResolver(DllImportResolver));
					NativeLibrary.SetDllImportResolver(typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly, new DllImportResolver(DllImportResolver));
					string sAssemblyPath = Path.Combine(sInstallPath, "Esri.ArcGISRuntime.dll");
					AssemblyLoadContext.Default.LoadFromAssemblyPath(sAssemblyPath);
					sAssemblyPath = Path.Combine(sInstallPath, "Esri.ArcGISRuntime.WPF.dll");
					AssemblyLoadContext.Default.LoadFromAssemblyPath(sAssemblyPath);
				}

				// Initialize the ArcGIS Runtime before any components are created.
				ArcGISRuntimeEnvironment.Initialize();
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.ToString(), "ArcGIS Runtime initialization failed.");

				// Exit application
				this.Shutdown();
			}
		}
		private static IntPtr DllImportResolver(string libraryName, System.Reflection.Assembly assembly, System.Runtime.InteropServices.DllImportSearchPath? searchPath)
		{
			string path = $"{NativeInstallPath}\\win-x{(Environment.Is64BitProcess ? "64" : "86")}\\native\\{libraryName}";
			if (libraryName == "RuntimeCoreNet" + DLLversion + ".dll") // &amp;amp;&amp;amp; assembly.FullName == typeof(Esri.ArcGISRuntime.ArcGISRuntimeEnvironment).Assembly.FullName)
			{
				if (runtimeLibPtr == IntPtr.Zero)
				{
					if (NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
						return runtimeLibPtr;
				}
				return runtimeLibPtr;
			}
			else if (libraryName == "RuntimeCoreNet" + DLLversion + ".WPF.dll") // &amp;amp;&amp;amp; assembly.FullName == typeof(Esri.ArcGISRuntime.UI.Controls.MapView).Assembly.FullName)
			{
				if (runtimeLibWpfPtr == IntPtr.Zero)
				{
					if (NativeLibrary.TryLoad(@$"{path}", out runtimeLibPtr))
						return runtimeLibWpfPtr;
				}
				return runtimeLibWpfPtr;
			}
			return IntPtr.Zero;
		}
	}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111094#M10566</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-10-26T01:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111299#M10575</link>
      <description>&lt;P&gt;I don't do a lot of dynamic DLL loading, but the times I have done so, have shown me that any reference to the type before the load is complete is catastrophic.&lt;/P&gt;&lt;P&gt;As such, would not lines 39, 40 cause problems as they attempt to get a Type reference from a type before the library load is performed/finished?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 15:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111299#M10575</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-10-26T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111422#M10581</link>
      <description>&lt;P&gt;Good point; I went ahead and moved those lines to the end of the block.&amp;nbsp; I still am seeing both issues, however.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111422#M10581</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2021-10-26T19:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111449#M10584</link>
      <description>&lt;P&gt;Actually, I don't think "moving to the end" is enough. With the discovery stuff I've seen it will discover them at the beginning of the method.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a similar plug-in discovery project that couldn't be referenced until paths were defined and basic init was done. I had to move all the specific stuff to methods that were only used post init, and I couldn't use any "using" definitions.&amp;nbsp; If you did it would blow up.&amp;nbsp; Of course, that was before we started compiling it with the delayed load flag active so I don't know how much of it was caused by that.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 21:21:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111449#M10584</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-10-26T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111738#M10587</link>
      <description>&lt;P&gt;Just following up on this: The reason you weren't seeing InstallPath in the assembly but in the doc, was that the doc was showing the .NET Framework version, and not the .NET Core version which uses a very different built-in mechanism for loading native runtimes. The doc site got updated with U12 so you can switch between all supported target frameworks, and there's also a table showing which platforms a given member is available on. (expand the "applies to" table here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.InstallPath.html" target="_blank"&gt;https://developers.arcgis.com/net/api-reference/api/netfx/Esri.ArcGISRuntime/Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.InstallPath.html&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111738#M10587</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-10-27T17:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111743#M10588</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/502100"&gt;@TroyAvery1&lt;/a&gt;&amp;nbsp;It shouldn't. Just touching the managed assembly should be fine. Most types however that are backed by the native bits of runtime would cause a load of the native lib, so just try and avoid creating any objects, or calling any static methods in the assembly until you've initialized stuff.&lt;BR /&gt;Also note that the import resolvers only apply to loading the native assemblies - it does not relate to loading of the resources (ie shaders and other resources). Those are usually expected to still be located in the application folder together with the managed assemblies.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111743#M10588</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-10-27T17:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111747#M10589</link>
      <description>&lt;P&gt;Yea, the plugin work I was referencing was not in any way related to ESRI, I was just quoting some experience in similar things.&amp;nbsp; It ended up having to look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public static ManagedInitializer()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;try {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//do bunch of init stuff (path, assembly load, etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//This call would cause exception on entry into "ManagedInitializer()"&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//Some.Dynamic.Load.Library.BusinessLogic();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//where this would be totally fine......&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;DoTheActualWork();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;} catch (Exception) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;//Somethng messed up&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;private static void DoTheActualWork()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;string result = Some.Dynamic.Load.Library.BusinessLogic();&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 17:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1111747#M10589</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2021-10-27T17:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285897#M11815</link>
      <description>&lt;P&gt;Unfortunately, we're not able to use the SetDllImportResolver method when unit testing in VS 2022. Perhaps this methodology is different in that situation? Our main question is what is in this central runtime folder ("C:\ArcGISRuntimeInstall\"). Should it be filled with the contents of the nuget package? If so, which part of it? Attached is our guess of what those files are.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:58:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285897#M11815</guid>
      <dc:creator>JeremyBridges</dc:creator>
      <dc:date>2023-05-04T20:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285918#M11816</link>
      <description>&lt;P&gt;Can’t see the doc, our company has things locked up tighter than the CIAs plans for the Kennedy assassination.&lt;/P&gt;&lt;P&gt;If memory is correct this example was a WinForms migration to WPF attempt that was being done for a more up to date project. In the end, this project elected to just import it directly as they were not interested in sharing a deployment.&lt;/P&gt;&lt;P&gt;The traditional WinForms version of this contained the ESRI nugget package content.&lt;/P&gt;&lt;P&gt;.\Esri.ArcGISRuntime.dll&lt;/P&gt;&lt;P&gt;.\Esri.ArcGISRuntime.xml&lt;/P&gt;&lt;P&gt;.\arcgisruntime100.X\client32 (and all files in subdirs)&lt;/P&gt;&lt;P&gt;.\arcgisruntime100.X\client64 (and all files in subdirs)&lt;/P&gt;&lt;P&gt;.\arcgisruntime100.X\resources (and all files in subdirs)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This ran for some time just without the client32 folder as we had a 64 bit, but it was added for the purpose of completeness.&amp;nbsp; This is still in use today shared among a collection of WinForms applications.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect you are working a WPF solution and I believe the content is different but the idea is the same. I don’t know if you can trim it down the same way in that environment, but there’s no big loss just including everything. Though I do wish there was a way to safely ditch the language packs we know we won’t use (or maybe there is I never got around to trying it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 22:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285918#M11816</guid>
      <dc:creator>TroyAvery1</dc:creator>
      <dc:date>2023-05-04T22:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285919#M11817</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Our main question is what is in this central runtime folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;There is no central runtime folder. When you compile your application, everything the application needs (apart from .NET itself) will be copied to the output folder. What those folders are depends on your build configuration, processor architecture and target framework.&lt;BR /&gt;&lt;BR /&gt;We run unit tests daily with the runtime nuget packages, and the deployment that is generated works "as is" with both test explorer and commandline vstest.console. What issue are you hitting?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 22:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285919#M11817</guid>
      <dc:creator>SomeGISGuy</dc:creator>
      <dc:date>2023-05-04T22:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285921#M11818</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;I do wish there was a way to safely ditch the language packs we know we won’t use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;PropertyGroup&amp;gt;
  &amp;lt;SatelliteResourceLanguages&amp;gt;en;es;de&amp;lt;/SatelliteResourceLanguages&amp;gt;
&amp;lt;/PropertyGroup&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 22:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285921#M11818</guid>
      <dc:creator>SomeGISGuy</dc:creator>
      <dc:date>2023-05-04T22:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Esri.ArcGISRuntime.ArcGISRuntimEnvironment.InstallPath</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285939#M11819</link>
      <description>&lt;P&gt;It's pretty particular. We have a Xamarin.Forms project where we needed to bump forward to net6.0 on the iOS and Android projects for some newer dependencies. This required that we bump the shared .NET Standard library (that contains our XAML and all the core app logic) to netstandard2.1. The unit test projects couldn't target net48 anymore because of this change. We are trying net6.0-windows10.0.18362.0 for those unit test projects, but cannot make the Runtime happy. Gives the typical error:&lt;/P&gt;&lt;P&gt;System.DllNotFoundException : Unable to load DLL 'RuntimeCoreNet100_15_1.dll'&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 22:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/esri-arcgisruntime-arcgisruntimenvironment/m-p/1285939#M11819</guid>
      <dc:creator>JeremyBridges</dc:creator>
      <dc:date>2023-05-04T22:42:28Z</dc:date>
    </item>
  </channel>
</rss>

