As I learn that I can compile C#6.0 code to run on lower .NET framework,
Post-Answered Note: I realized that the post above only shows that C#6.0 can compile on .NET 4.0. For lower .NET, here is the answer from Mr. Jason Malinowski, who works on the Roslyn project:
"I can't think of a reason why it wouldn't work, but I'm not sure how much that has been tested"
I learn how to code in C#6.0 in Visual Studio 2013 and I read some posts regarding the topic:
- Using Roslyn compiler with Visual Studio 2013
- How to enable C# 6.0 feature in Visual Studio 2013?
- How can I add C# 6.0 to Visual Studio 2013?
And also watching a video:
What I basically understand from them are:
- You can have C#6.0 feature enabled in VS2013 by using Roslyn Compiler
- You could use
Microsoft.Net.Compilers NuGet package
to use Roslyn compiler, but with the cost that the VS2013 itself won't "understand" some codes since the VS2013's internal "live" compiler is not the same as Roslyn. - There was once upon a time where such is supported. https://github.com/dotnet/roslyn but the latest version for this is April's End.
(Side question: Anything wrong with my understanding?)
Now my questions are:
- As of now, is the a way to workaround with
Microsoft.Net.Compilers NuGet package
and VS2013 internal "live" compiler such that it can "understand" C#6.0? "There was once upon a time where such is supported"
how can I get this project. As I download the project from github and tried to open it with VS2013, I got the following error:Can we still use the April's End version well in VS2013 that it will understand what it tries to compile?
Any other workaround for this? I would be happy as long as I can code with C#6, using VS2013, and compile it to lower .NET framework.
Thanks!
Note: Unfortunately, using Visual Studio 2015 is not an option for me...