Currently Moq.netcore can't be compile Wait until https://travis-ci.org/aspnet/Diagnostics found a solution (similar problem) Or just disable the compilaction of tests for the productive deployment)