mojoportal has never had a dependency on razor. I suggest remove any references to it form web.config if they exist and remove the dll from the bin folder
Note that mojoportal release packages do not contain any source code and are not really intended for use in visual studio.
See also: