Description

The RPCUtility binaries cannot be built in 4.22 due to an issue with DotNETUtilities. When attempting to build the RPCUtility binaries as part of the BuildCommonTools command, the build provides a warning that states the framework that the DotNETUtilities.dll was built against is version 4.6.2 of the .NETFramework, but the targeted version is 4.5. The warning is then followed by an error stating that the DotNETUtilities namespace could not be found, and the build fails (see attached log).

REGRESSION:
Yes. The build completed successfully in 4.21.2.

Steps to Reproduce
  1. Obtain a clean sync of the 4.22 source code.
  2. Navigate to Engine\Binaries\DotNET.
  3. Delete all RPCUtility.* files (there should be 3 files if synced from Perforce, 2 if synced from GitHub).
  4. Run the following command: RunUAT.bat BuildCommonTools -platforms=Win64

RESULT:
The build fails with the following error: error CS0246: The type or namespace name 'DotNETUtilities' could not be found (are you missing a using directive or an assembly reference?) [D:\Main-Builds\Stream\Engine\Source\Programs\RPCUtility\RPCUtility.csproj]

There is also a warning that the reference to the DotNETUtilities.dll file could not be resolved because "it was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5"."

EXPECTED:
The build completes successfully and the RPCUtility files that had been deleted are recreated.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-70509 in the post.

2
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools
Affects Versions4.224.23
Target Fix4.22
Fix Commit5174514
Main Commit5207073
Release Commit5174748
CreatedFeb 22, 2019
ResolvedFeb 25, 2019
UpdatedMar 23, 2019
View Jira Issue