# Building plugin with external plugin dependency

**URL:** <https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046>\
**Category:** General\
**Created:** [July 8, 2024, 12:30am UTC](https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046 "2024-07-08T00:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwethakh](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@shwethakh](https://forum.opentap.io/u/shwethakh)\
**Post date:** [July 8, 2024, 12:30am UTC](https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046/1 "2024-07-08T00:30:58Z")

</div>

I am trying to reference another custom Tap package within my project. I have the package stored under T:\Packages as shown in the below image:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/e/e5904b5df1a73e409c7d9fa4ae380bc33542a482.png)

I added the below entries in my .csproj file

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/3/34f1d2b5b8e3cfd99a23c5fb84cd9e243fb242c2.png)

Now while building the project in Visual studio, it gives the below error:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/9/9f49075ff542766bb4ae4b6652565c153c91dadd.png)

Am I missing something? Why is it trying to treat package repository location like a file?

---

<div class="post-metadata">

**Author:** ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)\
**Post date:** [July 8, 2024, 12:32pm UTC](https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046/2 "2024-07-08T12:32:47Z")

</div>

Hi @shwethakh,

I am not sure what is going on here, but maybe you could try a different approach.

Instead of using the OpenTapPackageRepository element, you can also just add a repository to the OpenTapPackageReference element like this:

```xml
<OpenTapPackageReference Include="Agilent.OFSIM.MSD.PL89.DUT" Version="0.19.0-alpha.2" Repository="T:\Packages"/>

```

---

<div class="post-metadata">

**Author:** ![alexander.larsen](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@alexander.larsen](https://forum.opentap.io/u/alexander.larsen)\
**Post date:** [July 8, 2024, 5:13pm UTC](https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046/3 "2024-07-08T17:13:50Z")

</div>

Hi @shwethakh

The warning in your screenshot is not from OpenTAP. It must be from something else.

There is a bug in 9.23.2 preventing you from installing packages from different drive letters, which was fixed in 9.24.1: [Cannot install images from network drive · Issue #1572 · opentap/opentap · GitHub](https://github.com/opentap/opentap/issues/1572)

Please try upgrading OpenTAP and let me know if that works.

---

<div class="post-metadata">

**Author:** ![shwethakh](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@shwethakh](https://forum.opentap.io/u/shwethakh)\
**Post date:** [July 10, 2024, 1:56am UTC](https://forum.opentap.io/t/building-plugin-with-external-plugin-dependency/2046/4 "2024-07-10T01:56:16Z")

</div>

Thank you @rolf_madsen@alexander.larsen .This works after I updated my opentap nuget package to 9.24.2

I have another question. We build our TAP packages with version number in the name itself - something like the below:

![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/2X/d/d62afead4f5735e17b38625947d105a9f7adfa06.png)

Is there any way to mention just the tap package name in the csproject (Agilent.OFSIM.MSD.PL89.DUT) and make sure the build takes the latest version of the package i.e, Agilent.OFSIM.MSD.PL89.DUT.0.20.0-alpha.8.TapPackage? Right now it doesnt work if the version number is omitted from the csproject file
