Visual Studio 2022 error MSB3073 while trying to do Hello World tutorial

Hello there @thespunkyyskunk!

First of all, welcome to UE! And don’t worry, we all start somewhere, and that somewhere is usually a pile of erros and a log extract. Now, from your description, your setup looks to be in order, specially if you installed all VS components by following the setup guide.

Next, checking your error log, I think the key line is the following:

1>Couldn’t find target rules file for target ‘Projects\AdventureGame\AdventureProject\Intermediate\ProjectFiles’ in rules assembly ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’

Yet, your actual path is G:\Unreal Projects\AdventureGame\AdventureProject. The error starts at “Projects”, it’s not reading “Unreal”. This is due the space between “Unreal Projects”. As the engine process paths with Windows, any present space could be read as breaks, resulting in UE getting the path all wrong.

To fix this, we need to correct the path, and clean up the project’s cache, in order to get rid of any build fields that still contain the faulty address. To do so, please follow these steps:

  • Close both VS and UE

  • Rename your folder, either remove the space, or add an underscore (you could also reduce it’s lenght, to something like UE_Projects)

  • Go to your project’s main directory, and delete the following folders to clear the cache:

    • .vs (most likely hidden, check “Hidden items” in Windows folder options)
    • Binaries
    • DerivedDataCache
    • Intermediate
  • Also, delete the file for AdventureProject.sln

  • Next, right click on your .uproject file, and select “Generate Visual Studio project files”

  • All project files should be regenerated at this point, including a new .sln. Now, re-open your project, allow it to rebuild, and test it again for errors

Hope this helps, and good luck!