JetBrains / UnrealLink

Apache License 2.0
132 stars 23 forks source link

Installation RiderLink failed, unzipping RiderLink.zip extracted only part of files #75

Open DecoyRS opened 3 years ago

DecoyRS commented 3 years ago

RiderLink.zip is bundled with Rider for Unreal Engine. "Installing RiderLInk" means "unzip RiderLink.zip to temp folder, build plugin in place and (in case of success), move temp folder to selected project (or engine)". An investigation revelaed that .NET api for ZipFile.extractToDirectory might fail to unzip some files. Further on, default extractor for Windows 10 failed to unzip them as well. Only WinRar managed to acoomplish this task successfully. Need to investigate further and find a reliable way to unpack plugin.

DecoyRS commented 3 years ago

One possible issue - extracToDirectory fails for long file path, investigating

seriema commented 3 years ago

I was having the issue in #37 and tried the steps there, which gave me this error:

> .\Engine\Build\BatchFiles\RunUAT.bat BuildPlugin -Plugin="C:/source/tmp/RiderLink/RiderLink.uplugin" -Package="C:/source/tmp/RiderLink_Package" -Rocket
Running AutomationTool...
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1657,5): error MSB4036: The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The name of the task  in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files
located in the "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin" directory. [C:\source\UE4\Engine\Source\Programs\AutomationTool\AutomationTool.csproj]
RunUAT.bat ERROR: AutomationTool failed to compile.
BUILD FAILED

What fixed it for me was https://stackoverflow.com/a/47941283/703921

I'm using VS2017 and already had NuGet Package Manager installed, but "NuGet targets and build tasks" was missing from "Visual Studio Build Tools 2017". Installing it made the plugin install work. Would be nice if Rider detected missing build tools. 👍

Btw I have Rider for Unreal Engine 2021.1.