title: Unreal Engine 4.22 Could not find definition for module
body: <p>I'm taking a course for Unreal Engine 4 and I seem to have run into a compilation error.</p>
  <p>I only have maybe 3 days experience with Unreal.
  I am an expert at C++.
  I have never touched C Sharp before which is why it is irritating that C Sharp is being used in small parts of the example project when I was promised that only C++ is used in Unreal Engine 4 projects.</p>
  <p>The logfile ends as follows:</p>
  <blockquote>
  <p>LogVSAccessor: Warning: Couldn't access Visual Studio</p>
  <p>Candidate modules for hot reload:</p>
  <p>BullCowGame</p>
  <p>Launching UnrealBuildTool... [C:/Program Files/Epic Games/UE_4.22/Engine/Binaries/DotNET/UnrealBuildTool.exe  -ModuleWithSuffix=BullCowGame,6263 Win64 Development -TargetType=Editor -Project=&quot;C:/Users/school/Desktop/unreal_course_projects/bull_cow_game_attempt_2/BullCowGame-starter-kit/BullCowGame.uproject&quot; &quot;C:/Users/school/Desktop/unreal_course_projects/bul</p>
  <p>l_cow_game_attempt_2/BullCowGame-starter-kit/BullCowGame.uproject&quot;  -IgnoreJunk]</p>
  <p>Warning: Starting HotReload took  1.5s.</p>
  <p>CompilerResultsLog: New page: Compilation - May 6, 2020, 9:08:11 PM</p>
  <p>CompilerResultsLog: Using 'git status' to determine working set for adaptive non-unity build (C:\Users\school\Desktop\unreal_course_projects\bull_cow_game_attempt_2\BullCowGame-starter-kit).</p>
  <p>CompilerResultsLog: Creating makefile for BullCowGameEditor (game project files are newer)</p>
  <p>CompilerResultsLog: ERROR: Could not find definition for module 'BullCowGame' (referenced via BullCowGameEditor.Target.cs)</p>
  <p>LogMainFrame: MainFrame: Module compiling took 37.379 seconds</p>
  <p>Warning: HotReload failed, recompile failed</p>
  <p>LogSlate: Window 'Message Log' being destroyed</p>
  <p>LogSlate: Window 'Message Log' being destroyed</p>
  </blockquote>
  <p>BullCowGameEditor.Target.cs:</p>
  <pre><code>// Fill out your copyright notice in the Description page of Project Settings.
  
  using UnrealBuildTool;
  using System.Collections.Generic;
  
  public class BullCowGameEditorTarget : TargetRules
  {
      public BullCowGameEditorTarget(TargetInfo Target) : base(Target)
      {
          Type = TargetType.Editor;
  
          ExtraModuleNames.AddRange( new string[] { &quot;BullCowGame&quot; } );
      }
  }
  
  </code></pre>
  <p>BullCowGame.Target.cs:</p>
  <pre><code>// Fill out your copyright notice in the Description page of Project Settings.
  
  using UnrealBuildTool;
  using System.Collections.Generic;
  
  public class BullCowGameTarget : TargetRules
  {
      public BullCowGameTarget(TargetInfo Target) : base(Target)
      {
          Type = TargetType.Game;
  
          ExtraModuleNames.AddRange( new string[] { &quot;BullCowGame&quot; } );
      }
  }
  
  </code></pre>
  <p>The project layout:</p>
  <p><a href="https://i.stack.imgur.com/DZ83I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DZ83I.png" alt="BullCowGame_layout_1" /></a></p>
  <p><strong>The error I'm trying to fix: <em>ERROR: Could not find definition for module 'BullCowGame' (referenced via BullCowGameEditor.Target.cs)</em></strong></p>
  <p>You can see this error towards the bottom of the log file.
  Has anyone seen this before?
  Thanks in advance</p>