This question already has answers here:
How to use C# 7 with Visual Studio 2015?
(2 answers)
Closed 5 years ago.
I have installed .NET Framework 4.7 as well as the "Targeting Pack" available from Here. I then went and updated my the target framework to 4.7 on all my projects. Despite this, Visual Studio 2015 refuses to compile C# 7.0 syntax. Is there another step I am missing? OS is Windows 7 SP1.
To be able to use the new C# 7 language features, you need a C# compiler that understands these features.
VS.NET 2017 has a compiler that supports these features. The C# compiler incorporated in VS.NET 2015 does not.
Related
This question already has answers here:
What's the difference between Visual Studio Community and other, paid versions?
(4 answers)
Closed 5 years ago.
I just want to create a simple console application in Visual studio 2015 or 2017. But visual studio is not freely available. I tried to download VS2017 trial version but I am only getting one installed template and that is to create blank solution. Please suggest what I need to do or what I am doing wrong.
Since you're not in an enterprise, you can download and use VS Community for Free
(Formerly Visual Studio express)
https://www.visualstudio.com/vs/community/
This question already has answers here:
Does C# 6.0 work for .NET 4.0?
(5 answers)
Closed 6 years ago.
The Null-conditional Operators has supposedly been introduced in C# 6.0 (or .NET Framework 4.6). However, my project uses the 4.5.2 version of the framework (C# 5.0). While I'm using Visual Studio 2015, the IDE seems to understand the new notation and compiles/works properly. However, I'm confused about whether the project would still work upon publish. My development machine has 4.6 installed but the production server might not.
In other words, is the Null-conditional Operators really compatible with 4.5.2 or am I missing something?
C# 6 works on the NET 4.5.1. You don't need .Net 4.6.
For more see Does C# 6.0 work for .NET 4.0?
This question already has answers here:
C# and Visual C#?
(7 answers)
Closed 8 years ago.
I am an intermediate Java programmer and want to shift to C#. I am totally new to this Microsoft language. In books, they are using both terms Visual C# and C#. Can anyone please tell the real difference between the terms?
Visual C# is an implementation of the C# language by Microsoft.
Visual C# is just C#. You can build any kind of .NET application using C# and Visual Studio makes it easier test and debug your application.
for example using Visual Studio brings you lots of capabilities :
Code Editor
Debugger
Designer
Windows Forms Designer
WPF Designer
,...
for more information about Visual Studio read this page:
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
Update: Visual C# is the marketing name that Microsoft uses for C#, So nobody calls it Visual C#.
C# would refer to the language itself, which can be compiled without the Visual Studio environment using the .NET SDK & the supplied csc.exe (c# compiler - like javac) or the Mono environment.
Visual C# likely refers to the C# language AND the Visual Studio IDE / Toolchain (SQL/Reports etc.).
There is no real difference between C# and Visual C#. The terms are often used interchangeably.
Visual C# kind of implies using the Visual Studio for C# development. But there is only C#.
See here for learning resources.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Anders Hejlsberg's C# 4.0 REPL
Is there a native window/extension in VS2010 where you can write one-liners and see the result( like the 'Immediate Window', witch, as far as I know, is only usable in Debug mode).
I'm not interested in external tools like Linq Pad or SnippetCompiler
With Roslyn, Visual Studio will get a built in interactive window:
http://blog.filipekberg.se/2011/11/14/using-the-c-interactive-window-that-comes-with-roslyn/
Unfortunately, it is still only at CTP status.
Maybe the IronPython interactive console (inside visual studio) could do the work. But it's not a straight answer :/
http://ironpython.net/
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
alternative to visual studio 2010
I was wondering if there are any other tools that can be used to develop C#.NET application (like winodws forms and webforms) just like Visual Studio.
Are there any applications that are similar to Visual Studio for .NET application development?
On Windows you could use SharpDevelop. It works for C#, VB.NET, F#, and Boo. It also has a WinForms and WPF designer surface.
Check out MonoDevelop.