Solution has compiled successfully, but after I added an existing class file to the project, this error appeared:
The specified task executable \"csc.exe\
If you are using Microsoft.CodeDom.Providers.DotNetCompilerPlatform
you can upgrade to 2.x and then remove Microsoft.Net.Compilers
as it's no longer needed. That solved it for me, however I couldn't even build the solution in the first place. It was still complaining about System.Security.Principal.Windows
though, I could also solve it by referencing System.Security
as an assembly. It's not recommended though.