Which versions of Visual Studio, Arduino and Visual Micro are you using?
When I compile I get a clear error in the output
Compiling 'Rover' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
:int RECV_PIN = TKD2; \\ the pin the IR receiver is connected to
Error compiling libraries
The reason for the error is that you are trying to use a #define from the sketch in library code. Arduino doesn't work that way the libraries have no knowledge of the local sketch code.
To set defines globally you can use the Visual Micro "Micro General>Defines". It's a semi-colon sep list. There are two "defines" properties, one is global for project the other is specific to configuration specific (release/debug/custom etc.)
ENABLE_BJCOMMANDER=false;ENABLE_BJDETECTOR=true
Info: How to use Arduino to test local libraries? The local project libraries "[project_name]\src\_micro-api\libraries" are compiled in the same way as normal Arduino libraries. This means that you can copy the libraries to your "arduino user library" folder which is normally "documents\Arduino\libraries"
If libraries exist in both locations then Visual Micro will use the local project version (if it exists) which allows new library code to be developed without breaking other working projects. Other Visual Studio projects that use the libraries (or the Arduino ide) will use the "Published" version under the "documents" folder.
BUT we aware that the Arduino Ide does not have the facility to add extra defines to the project builder in the same that you can in Visual Micro (other than editing the build definitions and adding custom board entries such as "Rover Type 1" etc.). This can be done in boards.txt but only applies if you have a few main "groups/classifications" of #defines