Announcement

Collapse
No announcement yet.

GenerateProjectFiles fails with 4.23 release: Could not locate the assembly "Windows"

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    GenerateProjectFiles fails with 4.23 release: Could not locate the assembly "Windows"

    I've tried all sorts of components in Visual Studio 2017 but I keep getting this error. I even reinstalled Visual Studio to be sure.

    As far as I can tell namespace "Windows" should be in the Windows 10 SDK which is installed (10.0.17763.0). Is there a component I am missing? Can anyone help me debug this problem?

    Code:
    Setting up Unreal Engine 4 project files...
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(
    2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Windows". Check to make sure
     the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Developme
    nt\UnrealEngine-4.23.0-release\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    Platform\HoloLens\WinMDRegistrationInfo.cs(67,30): error CS0103: The name 'Windows' does not exist in the current conte
    xt [C:\Development\UnrealEngine-4.23.0-release\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    Platform\HoloLens\WinMDRegistrationInfo.cs(70,62): error CS0246: The type or namespace name 'Windows' could not be foun
    d (are you missing a using directive or an assembly reference?) [C:\Development\UnrealEngine-4.23.0-release\Engine\Sour
    ce\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    Platform\HoloLens\WinMDRegistrationInfo.cs(71,59): error CS0246: The type or namespace name 'Windows' could not be foun
    d (are you missing a using directive or an assembly reference?) [C:\Development\UnrealEngine-4.23.0-release\Engine\Sour
    ce\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    Platform\HoloLens\WinMDRegistrationInfo.cs(75,67): error CS0246: The type or namespace name 'Windows' could not be foun
    d (are you missing a using directive or an assembly reference?) [C:\Development\UnrealEngine-4.23.0-release\Engine\Sour
    ce\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    Platform\HoloLens\WinMDRegistrationInfo.cs(33,29): error CS0246: The type or namespace name 'Windows' could not be foun
    d (are you missing a using directive or an assembly reference?) [C:\Development\UnrealEngine-4.23.0-release\Engine\Sour
    ce\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
    
    GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.
    I have the following Visual Studio components installed:
     
    Spoiler

    #2
    Installing Visual Studio 2019 fixed the problem

    Comment


      #3
      You need .net framework 4.6.2

      Comment


        #4
        I solved this problem by installing Windows 10 SDK (10.0.18362.0). It seems 10.0.17763.0 is not compatible with 4.23.

        Comment


          #5
          Originally posted by starcoding View Post
          I solved this problem by installing Windows 10 SDK (10.0.18362.0). It seems 10.0.17763.0 is not compatible with 4.23.
          Same here. This fixed it. Thank you!

          Comment

          Working...
          X