I have a project that depends on many other projects. I made a change in the source code of that project. If I run msbuild on that project, it would go through all of its dependency projects. It would not reach to the actual compilation, because they did not change, but it would still take it quite some time to figure out that nothing needs to be done there.
I am looking for a way to check that the code just in the given project compiles without spending any extra cycles on other projects. I know Roslyn can do it - Edit and Continue does it during debugging.
How can I do it myself? Either with msbuild (if there is a hidden way to do it) or with Roslyn API.