Custom ArcObjects toolbar distribution?

1125
5
Jump to solution
04-27-2019 08:14 PM
TieshengWu
Occasional Contributor

Hi, 

I am a newer in ArcObjects. I developed an ArcObjects toolbar using Visual Studio. It generated .dll, .pdb and .xml file in folder 'debug'  after 'build solution' and the toolbar can be registered and used in my machine. My question is: how to distribute the toolbar? ie, make it available in another machine which is different Windows platform, 32 bit or 64 bit, win 7 or win 8, ArcMap 10.1 or ArcMap 10.5,  and what files should be  provided to others?

Thanks in advance.  

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

Open Reference folder of your project in Solution Explorer. Select all ArcGIS references. Right click on them and select Properties.

.Net frame version depends on your lowest ArcGIS version. It can’t be higher than your lowest ArcGIS version supports. For example:

• ArcGIS 10.0 - .NET Framework 3.5 SP1

• ArcGIS 10.1 - .NET Framework 3.5 SP1

• ArcGIS 10.2 - .NET Framework 3.5 SP1

• ArcGIS 10.3 - .NET Framework 3.5 SP1

• ArcGIS 10.4 - .NET Framework 4.5 SP1

• ArcGIS 10.5 - .NET Framework 4.5 SP1

• ArcGIS 10.6 - .NET Framework 4.5 SP1

• ArcGIS 10.7 - .NET Framework 4.5 SP1

View solution in original post

5 Replies
GKmieliauskas
Esri Regular Contributor

Hi Tiesheng,

You need only compiled dll file if you do not use external libraries except ArcGIS. You need to register your dll with C:\Program Files (x86)\Common Files\ArcGIS\bin\esriregasm.exe. If you want to use it on ArcMap10.1 or 10.5 so you need to compile it on 10.1. ArcGIS libraries must be referenced with property Specific version set to FALSE.

TieshengWu
Occasional Contributor

Thank you Kmieliauskas. Where can I change the setting of  Specific version (for VS 2010) ? Another option is .Net framework version, how to set it, is it important for distribution? 

0 Kudos
GKmieliauskas
Esri Regular Contributor

Hi,

Open Reference folder of your project in Solution Explorer. Select all ArcGIS references. Right click on them and select Properties.

.Net frame version depends on your lowest ArcGIS version. It can’t be higher than your lowest ArcGIS version supports. For example:

• ArcGIS 10.0 - .NET Framework 3.5 SP1

• ArcGIS 10.1 - .NET Framework 3.5 SP1

• ArcGIS 10.2 - .NET Framework 3.5 SP1

• ArcGIS 10.3 - .NET Framework 3.5 SP1

• ArcGIS 10.4 - .NET Framework 4.5 SP1

• ArcGIS 10.5 - .NET Framework 4.5 SP1

• ArcGIS 10.6 - .NET Framework 4.5 SP1

• ArcGIS 10.7 - .NET Framework 4.5 SP1

TieshengWu
Occasional Contributor

So I can set .NET framework to 2.0, Thank you a lot

0 Kudos
GKmieliauskas
Esri Regular Contributor

I would not recommend less than 3.5

0 Kudos