I configured a TFS 2018 [On-premises] agent pool and scheduled a build. Used the "Service fabric build template". Build failed with the following error
No agent found in pool Default which satisfies the specified demands: msbuild visualstudio Cmd Agent.Version -gtVersion 2.115.0
Those demands can't be removed because you are using tasks in your build that rely on them. Tasks can (and do) express "Demands" that have to be met by the agent's "Capabilities".
Installing Visual Studio and restarting your build agent should satisfy the demands.