I have a large C# codebase and am doing a lot of refactors, and can't open the entire codebase all at once in Visual Studio 2017. Hence, I can only do refactors to as much of the codebase as possible, then use MSBuild and look for compile errors in order to catch straggling references to the old objects.
In order to do these refactors faster, is there a C# build target or option that does not bother to generate any IL, but simply checks if the C# parses correctly and properly uses any types it references? If MSBuild doesn't offer this as a first party option, can it potentially be implemented by a third party, or is it impossible to do type verification without generating assemblies?
EDIT: I am essentially looking for a C# equivalent of Rust's cargo check
, which does all the static analysis on the project but does not do the code generation step.