# Plugins residing outside Game or Engine don't get deployed

**URL:** <https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082>\
**Category:** Platform & Builds\
**Tags:** engine-compile, unreal-engine, bug-report, build-failed, question\
**Created:** [December 2, 2016, 8:41am UTC](https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082 "2016-12-02T08:41:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TensaiSumo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TensaiSumo](https://forums.unrealengine.com/u/TensaiSumo)\
**Post date:** [December 2, 2016, 8:41am UTC](https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082/1 "2016-12-02T08:41:37Z")

</div>

_New: Added the ability for plugins to reside outside of the Engine/Plugins and Game/Plugins directory._ I saw this line in this release and immediately wanted to test this out. I was able to add the plugin from an external directory by adding the following lines in the .uplugin

```

    "AdditionalPluginDirectories": ["../Plugins/"]

```

which searches for my plugins fine and I am able to compile just fine. But when I try and deploy the application I get the following error:

```
 Can't deploy C:\Products\ProductDevelopmentUE\Plugins\BuLibraryPlugin\BuLibraryPlugin.uplugin because it doesn't start with C:\Products\ProductDevelopmentUE\PhotonMultiPlayer or C:\UnrealEngine-4.14.0-release

```

Which is enforcing the rule that the plugin needs to be either in the Game folder or the Unreal engine folder. So I am unable to deploy the project.

---

<div class="post-metadata">

**Author:** ![TensaiSumo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TensaiSumo](https://forums.unrealengine.com/u/TensaiSumo)\
**Post date:** [December 2, 2016, 9:42am UTC](https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082/2 "2016-12-02T09:42:49Z")

</div>

Changing line 377 of DeploymentContext.cs to this seems to work

OutputPath = CommandUtils.CombinePaths(InputPath.TrimStart(’/’, ‘\’));

---

<div class="post-metadata">

**Author:** ![TensaiSumo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TensaiSumo](https://forums.unrealengine.com/u/TensaiSumo)\
**Post date:** [December 2, 2016, 9:46am UTC](https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082/3 "2016-12-02T09:46:08Z")

</div>

Also I am unable to see the Plugins folder in my SolutionExplore of visual studio. But it still works fine though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [December 5, 2016, 11:39pm UTC](https://forums.unrealengine.com/t/plugins-residing-outside-game-or-engine-dont-get-deployed/378082/4 "2016-12-05T23:39:51Z")

</div>

Hi TensaiSumo,

Thank you for pointing this out. I ran some tests and saw the same results that you described. I have entered [UE-39359](https://issues.unrealengine.com/issue/UE-39359) to have this investigated further. If you would like, you can put in a pull request on GitHub for your suggested fix and reference the ticket that I entered for this issue.

I will see if I can find out some more information regarding whether the code for the plugin is expected to be included in the project’s solution in Visual Studio.
