After upgrading to VS2017 15.5.2 compile errors, cannot generate project file anymore.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(
1601,5): error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found. Check the following: 1.) The n
ame of the task in the project file is the same as the name of the task class. 2.) The task class is “public” and imple
ments the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with in the project
file, or in the *.tasks files located in the “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15
.0\bin” directory. [D:\GitHub\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
I’ve checked the SDK version and it is now targeted for 10.0.16299.0
Is it working with this version or do I have to use the 10.0.15063.0 ?
You should also install SDK 8.1 installed with VS 2017. Have you also tried deleting .vs, binary and intermediate folders and regenerating VS files? Sometimes such unknown compiler hiccups get fixed by just regenerating vs files and rebuilding the solution.
I’ve uninstalled completely VS 2017 and all SDKs.
Re-installed using the options given by Epic Games and no way to GenerateProjectFiles same error.
D:\GitHub\UnrealEngine>GenerateProjectFiles.bat -2017
Setting up Unreal Engine 4 project files...
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(
1601,5): error MSB4036: The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The n
ame of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and imple
ments 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\Community\MSBuild\15
.0\bin" directory. [D:\GitHub\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(
1601,5): error MSB4036: The "GetReferenceNearestTargetFrameworkTask" task was not found. Check the following: 1.) The n
ame of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and imple
ments 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\Community\MSBuild\15
.0\bin" directory. [D:\GitHub\UnrealEngine\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.
I have no idea why the NuGet package manager is needed.
It should install one component needed to compile UE4 engine source code.
After having installed the NuGet package manager, I can compile the UE4 source code from Git and also my project.
WOW,Thanks a 10,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 times