Visual Studio references

My colleague and I have developed a custom tool (now it is a couple of .dll files) that is supposed to be integrated into an ArcGIS Server web mapping application later. Originally, the tool was developed in MS Visual Studio 2008 with ArcGIS Server Web ADF 9.3.1 installed. Thus, the solution referenced Web ADF .dll files of the 9.3.1 release. However, the need to make a tool work with ArcGIS Server 9.3 platform appeared recently. I recommend using a great utility from ESRI – patchfinder93.exe – that can tell us what ESRI products/versions were installed on the machine. This way, the task was basically to update all the references to the libraries of the Web ADF 9.3.1 version in the Visual Studio solution so that they will refer to the libraries of the Web ADF 9.3 version instead.

The steps that were required to carry this out are detailed below:

  1. Right-click the solution name in Solution Explorer > Clean.
  2. Expand the References folder in Solution Explorer window. Remove references that are marked with a yellow sign.
  3. Right-click References > Add reference in Solution Explorer. Go to the Browse tab and then select in the <ArcGIS Installation folder>/Dotnet folder Web ADF .dll files of the references that were broken.
  4. Right-click the solution name in Solution Explorer > Build. This will create in the <solution name>/bin/debug folder new.dll files of a custom tool we’ve been working on.
  5. Replace those .dll files that are being referenced by an ArcGIS Server Web mapping application project with those ones you have just built. You can do that in Windows explorer, but, personally, I prefer to use Far Manager.
  6. This is it. Now it is possible to start a web application in a debugging mode in order to test that .dll files of the custom tool were compiled correctly.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s