csharp-build-singlefile-sublime-text-2
csharp-build-singlefile-sublime-text-2 copied to clipboard
Version of compiler is wrong.
Hi all, I have win 7 64bit, Visual studio 15, .net 4, .net 4.5 and I have installed this plugin for sublime. When I run build command it's returning error:
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
I have searched and read a lot of stuff regarding this but there is no clear solution how to make it run.
Hmm.. so this plugin only invokes the compiler you already have on your computer which in the case of Windows is the csc
command. However looking at the error you're posting, this thread, and this thread it looks as if we now should invoke the wrapper csc2
instead.
I won't have access to a Windows computer for some time so can't test this but I'm guessing it should be as simple as changing csc
for csc2
in this file.
But we should double-check that it can still compile old < C#5 projects.
If you want to try this out and send a pull request that would be fantastic :) Otherwise I'll get to it as soon as I've got a Windows machine up and running again.
Also, thanks for the ping! :)