I am creating test automation for my code generation library. I have a test project in C# 7.2. The project compiles with Visual Studio without any issues. My test is updating the code of this project. Then I want the test to compile the project, load the assembly, and verify it works as expected.
I tried both msbuild and csc. Both are complaining that 7.2 is too high for them.
I guess there should be a way to compile the project with devenv, which is already installed and works perfectly via UI.
Is there?