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

**URL:** <https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, Engine-Source-GitHub\
**Created:** [September 10, 2019, 7:37pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940 "2019-09-10T19:37:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![WontonGoodsoup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WontonGoodsoup](https://forums.unrealengine.com/u/WontonGoodsoup)\
**Post date:** [September 10, 2019, 7:37pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/1 "2019-09-10T19:37:50Z")

</div>

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?

```auto

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]

```auto

    "Microsoft.VisualStudio.Component.CoreEditor",
    "Microsoft.VisualStudio.Workload.CoreEditor",
    "Microsoft.VisualStudio.Component.Roslyn.Compiler",
    "Microsoft.Component.MSBuild",
    "Microsoft.VisualStudio.Component.Static.Analysis.Tools",
    "Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
    "Microsoft.VisualStudio.Component.PortableLibrary",
    "Microsoft.Net.Component.4.6.1.SDK",
    "Microsoft.Net.Component.4.6.1.TargetingPack",
    "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites",
    "Microsoft.Component.ClickOnce",
    "Microsoft.VisualStudio.Component.SQL.CLR",
    "Microsoft.VisualStudio.Component.VisualStudioData",
    "Microsoft.VisualStudio.Component.TextTemplating",
    "Microsoft.VisualStudio.Component.ManagedDesktop.Core",
    "Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites",
    "Microsoft.Net.Component.4.TargetingPack",
    "Microsoft.Net.Component.4.5.TargetingPack",
    "Microsoft.Net.Component.4.5.1.TargetingPack",
    "Microsoft.Net.Component.4.5.2.TargetingPack",
    "Microsoft.Net.Component.4.6.TargetingPack",
    "Microsoft.Net.ComponentGroup.TargetingPacks.Common",
    "Microsoft.ComponentGroup.Blend",
    "Microsoft.VisualStudio.Component.EntityFramework",
    "Microsoft.VisualStudio.Component.Debugger.JustInTime",
    "Microsoft.VisualStudio.Component.NuGet",
    "Microsoft.Net.Component.4.6.2.SDK",
    "Microsoft.Net.Component.4.6.2.TargetingPack",
    "Microsoft.VisualStudio.Workload.ManagedDesktop",
    "Microsoft.VisualStudio.Component.VC.CoreIde",
    "Microsoft.VisualStudio.Component.VC.Redist.14.Latest",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.Component.Graphics.Win81",
    "Microsoft.VisualStudio.Component.Graphics.Tools",
    "Microsoft.VisualStudio.Component.VC.DiagnosticTools",
    "Microsoft.VisualStudio.Component.Windows10SDK.17763",
    "Microsoft.Component.VC.Runtime.UCRTSDK",
    "Microsoft.VisualStudio.Component.Windows81SDK",
    "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Win81",
    "Microsoft.VisualStudio.Component.DiagnosticTools",
    "Microsoft.VisualStudio.Component.Windows10SDK",
    "Microsoft.VisualStudio.Component.NuGet.BuildTools",
    "Microsoft.VisualStudio.Workload.NativeGame"

```

[/SPOILER]

---

<div class="post-metadata">

**Author:** ![WontonGoodsoup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WontonGoodsoup](https://forums.unrealengine.com/u/WontonGoodsoup)\
**Post date:** [September 11, 2019, 12:03pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/2 "2019-09-11T12:03:15Z")

</div>

Installing Visual Studio 2019 fixed the problem

---

<div class="post-metadata">

**Author:** ![AndreyChistyakov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AndreyChistyakov](https://forums.unrealengine.com/u/AndreyChistyakov)\
**Post date:** [September 12, 2019, 11:30am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/3 "2019-09-12T11:30:12Z")

</div>

You need ._net framework 4.6.2_

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a4687a16](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a4687a16](https://forums.unrealengine.com/u/anonymous_user_a4687a16)\
**Post date:** [September 17, 2019, 3:09am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/4 "2019-09-17T03:09:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![virtualHC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/virtualhc/32/1194710_2.png) [@virtualHC](https://forums.unrealengine.com/u/virtualHC)\
**Post date:** [September 19, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/5 "2019-09-19T14:13:39Z")

</div>

> [@anonymous\_user\_a4687a16](#):
>
> 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!

---

<div class="post-metadata">

**Author:** ![fer1977](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fer1977](https://forums.unrealengine.com/u/fer1977)\
**Post date:** [January 9, 2020, 8:30am UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/6 "2020-01-09T08:30:19Z")

</div>

Thanks. I have VS 2017 and update Windows sdk to 10.0.18362.0 and the problem went away

---

<div class="post-metadata">

**Author:** ![ScottBrown](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ScottBrown](https://forums.unrealengine.com/u/ScottBrown)\
**Post date:** [March 31, 2020, 5:33pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/7 "2020-03-31T17:33:46Z")

</div>

Likewise, going to 2017 fixed it for me as well. Not sure why I thought 4.24 needed 2019 but its all good now. You do have to update the windows SDK separately from what comes in 2017 or you will get some compile errors as well FYI for anyone else reading this.

---

<div class="post-metadata">

**Author:** ![NyanpassQwQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NyanpassQwQ](https://forums.unrealengine.com/u/NyanpassQwQ)\
**Post date:** [November 15, 2023, 7:46pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/8 "2023-11-15T19:46:42Z")

</div>

Check .csproj file and Check reference HintPath

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/9/4899458b821029a39af5561ba9ca804713bb50b8.png)  
Fix it

---

<div class="post-metadata">

**Author:** ![IPG\_MS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IPG\_MS](https://forums.unrealengine.com/u/IPG_MS)\
**Post date:** [January 30, 2024, 10:05pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/9 "2024-01-30T22:05:22Z")

</div>

This worked for me on 4.27. I changed line 83 in HoloLens.automation.csproj

---

<div class="post-metadata">

**Author:** ![coldiron\_madams](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@coldiron\_madams](https://forums.unrealengine.com/u/coldiron_madams)\
**Post date:** [October 20, 2025, 4:14pm UTC](https://forums.unrealengine.com/t/generateprojectfiles-fails-with-4-23-release-could-not-locate-the-assembly-windows/130940/10 "2025-10-20T16:14:01Z")

</div>

On 4.27+, in that file, try updating the SDK references to $(Windows10SdkPath)\UnionMetadata\10.0.22621.0\Windows.winmd & make sure the 22621 Windows Kit is installed (there’s other Unreal compiler errors in the version after that).
