# How to make nakama-unreal plugin work with my ue5/vs2022 installation

**URL:** <https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903>\
**Category:** Client Libraries\
**Tags:** sdk-unreal\
**Created:** [August 4, 2022, 10:00am UTC](https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903 "2022-08-04T10:00:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LittleOldXander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/littleoldxander/32/1275_2.png) [@LittleOldXander](https://forum.heroiclabs.com/u/LittleOldXander)\
**Post date:** [August 4, 2022, 10:00am UTC](https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903/1 "2022-08-04T10:00:03Z")

</div>

Hello, i installed UE5 (5.0.3 if it matters) and tried to use the nakama-unreal plugin but the project won’t build after adding the nakama-unreal plugin:

```auto
Rebuild started...
1>------ Rebuild All started: Project: TheatrumBelli, Configuration: Development_Editor x64 ------
1>Cleaning TheatrumBelliEditor and UnrealHeaderTool binaries...
1>C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Plugins\Nakama\Source\Nakama\Nakama.Build.cs(112,3): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
1>UnrealBuildTool : error : Expecting to find a type to be declared in a target rules named 'TheatrumBelliEditorTarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.
1>Using bundled DotNet SDK
1>Log file: C:\Users\Xander\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for TheatrumBelliEditor (no existing makefile)
1>Compiled assembly file 'C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Intermediate\Build\BuildRules\TheatrumBelliModuleRules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly 'C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Intermediate\Build\BuildRules\TheatrumBelliModuleRules.dll'. Format of the executable (.exe) or library (.dll) is invalid.)
1>C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Plugins\Nakama\Source\Nakama\Nakama.Build.cs(112,3): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
1>UnrealBuildTool : error : Expecting to find a type to be declared in a target rules named 'TheatrumBelliEditorTarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(50,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.0\Engine\Build\BatchFiles\Rebuild.bat" TheatrumBelliEditor Win64 Development -Project="C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\TheatrumBelli.uproject" -WaitMutex -FromMsBuild" exited with code -1.
1>Done building project "TheatrumBelli.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

```

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [August 4, 2022, 1:41pm UTC](https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903/2 "2022-08-04T13:41:33Z")

</div>

Hi @LittleOldXander could you email us at [support@heroiclabs.com](mailto:support@heroiclabs.com)?

---

<div class="post-metadata">

**Author:** ![LittleOldXander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/littleoldxander/32/1275_2.png) [@LittleOldXander](https://forum.heroiclabs.com/u/LittleOldXander)\
**Post date:** [August 4, 2022, 4:06pm UTC](https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903/3 "2022-08-04T16:06:35Z")

</div>

> [@LittleOldXander](#):
>
> ```auto
> Rebuild started...
> 1>------ Rebuild All started: Project: TheatrumBelli, Configuration: Development_Editor x64 ------
> 1>Cleaning TheatrumBelliEditor and UnrealHeaderTool binaries...
> 1>C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Plugins\Nakama\Source\Nakama\Nakama.Build.cs(112,3): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
> 1>UnrealBuildTool : error : Expecting to find a type to be declared in a target rules named 'TheatrumBelliEditorTarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.
> 1>Using bundled DotNet SDK
> 1>Log file: C:\Users\Xander\AppData\Local\UnrealBuildTool\Log.txt
> 1>Creating makefile for TheatrumBelliEditor (no existing makefile)
> 1>Compiled assembly file 'C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Intermediate\Build\BuildRules\TheatrumBelliModuleRules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly 'C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Intermediate\Build\BuildRules\TheatrumBelliModuleRules.dll'. Format of the executable (.exe) or library (.dll) is invalid.)
> 1>C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\Plugins\Nakama\Source\Nakama\Nakama.Build.cs(112,3): error CS0103: The name 'PublicLibraryPaths' does not exist in the current context
> 1>UnrealBuildTool : error : Expecting to find a type to be declared in a target rules named 'TheatrumBelliEditorTarget'. This type must derive from the 'TargetRules' type defined by Unreal Build Tool.
> 1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(50,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.0\Engine\Build\BatchFiles\Rebuild.bat" TheatrumBelliEditor Win64 Development -Project="C:\Users\Xander\Documents\Unreal Projects\TheatrumBelli\TheatrumBelli.uproject" -WaitMutex -FromMsBuild" exited with code -1.
> 1>Done building project "TheatrumBelli.vcxproj" -- FAILED.
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
> 
> ```

@lugehorsam sent, thank you!

---

<div class="post-metadata">

**Author:** ![gabriel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gabriel/32/644_2.png) [@gabriel](https://forum.heroiclabs.com/u/gabriel)\
**Post date:** [August 8, 2022, 9:16am UTC](https://forum.heroiclabs.com/t/how-to-make-nakama-unreal-plugin-work-with-my-ue5-vs2022-installation/2903/4 "2022-08-08T09:16:37Z")

</div>


