From 4d70118ed2f9d03f608618bfc0f0289972409961 Mon Sep 17 00:00:00 2001 From: oqsh <30433920+oqsh@users.noreply.github.com> Date: Fri, 26 Jul 2019 11:19:21 +0800 Subject: [PATCH] Update PluginCreatorPlugin.Build.cs When I want to add current codes to my project (generate visual studio project files), it will appear error CS1729. After searching from the Internet, I found the solution in https://answers.unrealengine.com/questions/764146/unreal-build-tool-error-1.html worked: In UE 4.16 engine switched from using ReadOnlyTargetRules from TargetInfo in constructor of your C# modules. In newer version you also have to call base contructor and pass that target(ReadOnlyTargetRules) here. --- Source/PluginCreatorPlugin/PluginCreatorPlugin.Build.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/PluginCreatorPlugin/PluginCreatorPlugin.Build.cs b/Source/PluginCreatorPlugin/PluginCreatorPlugin.Build.cs index 90da8e2..6cca3a0 100644 --- a/Source/PluginCreatorPlugin/PluginCreatorPlugin.Build.cs +++ b/Source/PluginCreatorPlugin/PluginCreatorPlugin.Build.cs @@ -3,7 +3,7 @@ public class PluginCreatorPlugin : ModuleRules { - public PluginCreatorPlugin(TargetInfo Target) + public PluginCreatorPlugin(ReadOnlyTargetRules Target) : base(Target) { PrivateIncludePaths.AddRange(new string[] { "PluginCreatorPlugin/Private", "PluginCreatorPlugin/Private/UI", "PluginCreatorPlugin/Private/Helpers" }); @@ -38,4 +38,4 @@ public PluginCreatorPlugin(TargetInfo Target) "DesktopPlatform", }); } -} \ No newline at end of file +}