# How to prevent plugin recompilation

**URL:** <https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557>\
**Category:** Plugins\
**Tags:** compiling, unreal-engine, Visual-Studio, Plugins, question, CPP\
**Created:** [October 27, 2020, 6:01am UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557 "2020-10-27T06:01:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![leaderlord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leaderlord](https://forums.unrealengine.com/u/leaderlord)\
**Post date:** [October 27, 2020, 6:01am UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/1 "2020-10-27T06:01:03Z")

</div>

I have 2 plugins in my project’s ‘Plugins’ folder along with their source files, and every time I build the solution in Visual Studio, the plugins get recompiled even though nothing was changed in their sources. Is there a way to skip the compilation for the 2 plugins?

---

<div class="post-metadata">

**Author:** ![Grumpy\_Troll\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grumpy\_Troll\_1](https://forums.unrealengine.com/u/Grumpy_Troll_1)\
**Post date:** [May 4, 2021, 8:40pm UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/2 "2021-05-04T20:40:35Z")

</div>

Did you manage to find a solution to this?

---

<div class="post-metadata">

**Author:** ![leaderlord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leaderlord](https://forums.unrealengine.com/u/leaderlord)\
**Post date:** [May 5, 2021, 2:38am UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/3 "2021-05-05T02:38:55Z")

</div>

Found the answer: go into the plugin’s .build.cs and in its constructor add bUsePrecompiled = true

---

<div class="post-metadata">

**Author:** ![leaderlord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leaderlord](https://forums.unrealengine.com/u/leaderlord)\
**Post date:** [May 5, 2021, 2:39am UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/4 "2021-05-05T02:39:47Z")

</div>

Added the answer below

---

<div class="post-metadata">

**Author:** ![Grumpy\_Troll\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grumpy\_Troll\_1](https://forums.unrealengine.com/u/Grumpy_Troll_1)\
**Post date:** [May 5, 2021, 6:22pm UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/5 "2021-05-05T18:22:25Z")

</div>

Thank you very much for your answer. Unfortunately however, now it’s creating the library [ProjectName]Editor-000X.dll that seems to be taking a long time. Is there also something that I should change in the project’s .Build.cs to make it work? (I currently have “PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs”. It’s worth keeping in mind that the greatest offender among the project plugins has a PrivatePCHHeaderFile set.)

---

<div class="post-metadata">

**Author:** ![leaderlord](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@leaderlord](https://forums.unrealengine.com/u/leaderlord)\
**Post date:** [May 6, 2021, 3:51am UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/6 "2021-05-06T03:51:43Z")

</div>

I don’t know what’s causing that. I had the issue with [VRExpansionPlugin](https://github.com/mordentral/VRExpansionPlugin/blob/Master/VRExpansionPlugin/Source/VRExpansionPlugin/VRExpansionPlugin.Build.cs) and [GitSourceControl](https://github.com/SRombauts/UE4GitPlugin/blob/master/Source/GitSourceControl/GitSourceControl.Build.cs). I only added that option right after the constructor declaration.

---

<div class="post-metadata">

**Author:** ![Grumpy\_Troll\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grumpy\_Troll\_1](https://forums.unrealengine.com/u/Grumpy_Troll_1)\
**Post date:** [May 6, 2021, 8:37pm UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/7 "2021-05-06T20:37:18Z")

</div>

Thank you. Frustratingly, setting that option on some of the plugins of the project I’m working on seems to cause DLL load problems. I shall have to continue investigating.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1607855e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1607855e1](https://forums.unrealengine.com/u/anonymous_user_1607855e1)\
**Post date:** [June 16, 2021, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557/8 "2021-06-16T21:17:51Z")

</div>

Did you find a solution?
