As replied in thread with ID 678500, please check our integration articles
in order to get JustMock running in your MsBuild tasks.
If the issue still remains after applying the described workflow(s), I will need the logs from an event with ID 1022 right after the "Profiler must be enabled" exception has been thrown.
Further, you could check this article
for known issues that may cause the matter.
Share what you think about JustTrace & JustMock with us, so we can become even better! You can use the built-in feedback tool inside JustTrace, our forums
, or our JustTrace