Error when making a C++ class (com

I am fairly new to unreal and i just had my installation done. The problem is that whenever i create a new C++ class, this message appears,

Successfully added class ‘MyClass’, however you must recompile the ‘MyProject2’ module before it will appear in the Content Browser. Failed to generate project files.
Would you like to open the Output Log to see more details?

When i click in yes, this log comes up

Cmd: MAP CHECKDEP NOCLEARLOG
MapCheck: Info Map check complete: 0 Error(s), 0 Warning(s), took 153.672ms to complete.
LogFileHelpers: Loading map 'Minimal_Default' took 4.983
LogCollectionManager: Loaded 0 collections in 0.003141 seconds
LogFileCache: Scanning file cache for directory 'C:/Unreal Projects/MyProject2/Saved/Collections/' took 0.01s
LogFileCache: Scanning file cache for directory 'C:/Unreal Projects/MyProject2/Content/Developers/DanyalMubashir/Collections/' took 0.01s
LogFileCache: Scanning file cache for directory 'C:/Unreal Projects/MyProject2/Content/Collections/' took 0.01s
LogCollectionManager: Rebuilt the GUID cache for 0 collections in 0.000003 seconds
LogContentBrowser: Native class hierarchy populated in 0.0649 seconds. Added 2141 classes and 415 folders.
LogStats: UGameplayTagsManager::ConstructGameplayTagTree: Construct from data asset -  0.000 s
LogStats: UGameplayTagsManager::ConstructGameplayTagTree: GameplayTagTreeChangedEvent.Broadcast -  0.000 s
LogContentBrowser: Native class hierarchy updated for 'GameplayTags' in 0.0008 seconds. Added 12 classes and 0 folders.
LogContentBrowser: Native class hierarchy updated for 'WidgetCarousel' in 0.0010 seconds. Added 0 classes and 0 folders.
LogContentBrowser: Native class hierarchy updated for 'AddContentDialog' in 0.0007 seconds. Added 0 classes and 0 folders.
LogContentBrowser: Native class hierarchy updated for 'SceneOutliner' in 0.0007 seconds. Added 1 classes and 2 folders.
LogCrashTracker: Crashtracker disabled due to settings.
**LogUObjectGlobals:Warning: Failed to find object 'Class None.'**
LogContentBrowser: Native class hierarchy updated for 'HierarchicalLODOutliner' in 0.0007 seconds. Added 1 classes and 2 folders.
LogLoad: (Engine Initialization) Total time: 101.69 seconds
LogLoad: (Engine Initialization) Total Blueprint compile time: 0.17 seconds
LogExternalProfiler: Found external profiler: VSPerf
LogExternalProfiler: Using external profiler: VSPerf
LogWindowsTextInputMethodSystem:Display: IME system now deactivated.
LogWindowsTextInputMethodSystem:Display: IME system now deactivated.
LogOcInput: OculusInput pre-init called
LogContentStreaming: Texture pool size now 800 MB
LogRenderer: Reallocating scene render targets to support 756x612 (Frame:3).
LogEditorViewport: Clicking on Actor (LMB): BP_Sky_Sphere_C (BP_Sky_Sphere)
LogAssetRegistry: Asset discovery search completed in 105.7705 seconds
LogCollectionManager: Rebuilt the object cache for 0 collections in 0.000000 seconds (found 0 objects)
LogCollectionManager: Fixed up redirectors for 0 collections in 0.000038 seconds (updated 0 objects)
Running C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Unreal Projects/MyProject2/MyProject2.uproject" -game -rocket -progress
**Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015.
Visual C++ 2015 toolchain does not appear to be correctly installed. Please verify that "Common Tools for Visual C++ 2015" was selected when installing Visual Studio 2015.**
Discovering modules, targets and source code for project...
**UnrealBuildTool Exception: ERROR: Failed to find cl.exe in the default toolchain directory C:\Program Files (x86)\Microsoft Visual Studio**

The thing is, i do have common tools installed and i also reinstalled the whole visual studio with it, it didnt solve the problem. I also reinstalled the unreal engine itself, that didn’t help either.
So I wanna know where am i going wrong over here?

Hi Xeurikion,

Could you please download this file to your desktop, remove the .txt extension, and run the file? It will create a new info.txt file that has some information about your Visual Studio installation. If you could upload that file back here, I’ll take a look to see if there may be something unusual about your installation that may be causing this issue.

Tim

Hi Xeurikion,

We have not heard back from you for a few days. Are you still having trouble with this issue? I will be marking this post as resolved for internal tracking purposes, but please feel free to add a comment and reopen the post if you need any additional help.

Tim