Is it possible to use C# 4.0 with Visual Studio 2008? - visual-studio

I'm pretty aware that Visual Studio 2010 works with C# 4.0. But now I was wandering if I'm able to test C# 4.0 features with Visual Studio 2008.
I did that one time, using C# 3.0 with Visual Studio 2005 hacking the app.config file.
Did anyone have any success using C# 4.0 in VS2008?
I've installed Net Framework 4.0 beta, rebooted, created a new WPF application, chosen Application properties, but the Target Framework can be set only to Net Framework 3.5.

No. You can't use .NET 4.0 with VS2008, and you can't use the C# 4.0 features either - it's exactly the same situation as trying to make VS2005 cope with C# 3.0. The editor, Intellisense etc just don't know about the new features.
One important aspect is that even though it looks like Visual Studio is just using the external csc.exe compiler, it isn't - there's another "in-process" one. That in-process compiler is tied to the version of Visual Studio it comes with, so it only knows about the language features which were available at the time.

The 3.0 and 3.5 .NET libraries were just add-ons to 2.0. So it ws possible to test work done in VS 2008 using VS 2005 if you didn't use any 3.0 or 3.5 features.
My understanding is that the 4.0 is entirely new libraries, so I doubt you will be able to load or use them in VS 2008/2005.

Related

VB .net 2003 to VS2010

I have applications that have been created by a third party. These apps were done by using Visual Basic .NET 2003 with MS .NET Framework 1.1. Now I'm in the need to be able to modify these apps, but it seems that at the moment there is only one possible software to purchase and that is the Visual Studio 2010.
Is it even remotely possible to use this newer version with these old creations, or do I have to rewrite the entire code?
If it is possible, I reckon if I make modifications with VS2010, it is impossible to do anything with VB .NET 2003 afterwards?
You can upgrade the projects to VS 2010 and .Net 2.0 or 4.0 and work on them there.
It will not be easy to go back again.

Integrating Nemerle in Visual C# 2010 Express

I would like to use Nemerle to write parts of a .NET application. Is there a plugin for Visual C# 2010 Express?
The only one I found returns an error because it is thought for a different version of Visual C#.
The plan is to release Nemerle 1.0 with full 2008 integration ASAP, then work on 2010. There are major differences between these versions of Visual Studio.
There is no full working add on for VS2010 right now.
There is some early stage work.
If you wish, you can help with this project.

What Visual Studio for .NET 1.0 web development?

I have a old web application developed in .NET 1.0. How can I do some minor changes in it? What Visual Studio do I need and how do I obtain it? Or can I develop in some other tool?
Thanks in advance!
It was called VisualStudio.NET, followed by Visual Studio 2003 (also known as version 7.1).
I don't think this is available anymore, unless you have a pro MSDN subscription or above.
Visual Studio 2005/2008/2010 cannot be used for this, nor can mono-develop, but you might be able to use the version of SharpDevelop that supports 1.1.
You'd need Visual Studio 2002, it targeted .NET 1.0. That edition didn't last long, Visual Studio 2003 and .NET 1.1 quickly followed. Your project should have good odds opening and running properly on that edition. Odds get lower once you move to VS 2005/8 and .NET 2.0+
If you don't have VS2002 then you can obtain a license through an MSDN Library subscription. An auction site like Ebay is a cheaper alternative.
It was originally called Visual Studio.NET but later on also got referred to as Visual Studio 2002.
I looked it up and apparently you can still download it if you have an MSDN subscription.
You can use VS 2005, VS 2003, or VS 2002. I think the 2002 edition was called VS.NET.
From http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx
What about .NET 1.0 and 1.1?
Unfortunately the VS 2008 multi-targeting support only works with .NET 2.0, .NET 3.0 and .NET 3.5 - and not against older versions of the framework. The reason for this is that there were significant CLR engine changes between .NET 1.x and 2.x that make debugging very difficult to support. In the end the costing of the work to support that was so large and impacted so many parts of Visual Studio that we weren't able to add 1.1 support in this release.
VS 2008 does run side-by-side, though, with VS 2005, VS 2003, and VS 2002. So it is definitely possible to continue targeting .NET 1.1 projects using VS 2003 on the same machine as VS 2008.
Take a back up of your project.
Try to down load visual studio express 2008 version and open the project. you will have an option to convert. Once converted download the latest visual studio express and then convert into the latest version.
BTW Visual stuido express is FREE
Note:
Some of the methods may not be supported or droped. you need to recode them or replace them.

IronPython :- Visual Studio 2010 or SharpDevelop?

I'm considering developing a medium-size project for a client in IronPython. It's a pretty straightforward replacement for an existing system I've been supporting for several years, so the specification is quite well defined and understood.
This is my first significant IronPython and .Net project so I'm expecting a bit of a learning curve. I was going to use SharpeDevelop, but I can purchase VisualStudion 2010 for a reasonable price and whilst I understood that IronPython Tools for Visual Studio 2008 were not so good, I haven't seen anything about the update for 2010 yet.
Has anyone used either or both of these in a reasonable-sized commercial environment and do you have any recommendations?
(and I'm aware of this question, but this is specifically about VS2010)
Here is a quick comparison of IronPython Tools for Visual Studio 2010 and SharpDevelop showing the features that one has which the other does not:
IronPython Tools for Visual Studio 2010 has:
Better intellisense.
WPF designer.
Can edit your code without a project.
Go to definition support.
Find all references support.
More comprehensive IronPython interactive window integration.
SharpDevelop has:
WinForms designer.
Code conversion support from C#, VB.NET to Python
Compiles your IronPython code to an executable or class library.
Both of them are free. You can use IronPython Tools with the Visual Studio 2010 Shell (Integrated) which is a free download.
Considering that the IronPython Tools for VS2010 are "only" at the CTP stage, they're very high quality (anyone else would call them a beta). I've been using them when I can for a while now and haven't had any major issues. If you do have any issues with the VS2010 tools, the IronPython team is very open to feedback.
I haven't used SharpDevelop's tools, however, so I can't really compare them.
Greetings;
From what I've followed and read on-line during the Visual Studio 2010 Beta program and after, there seems to be no direct IDE support for IronPython in Visual Studio .NET 2010:
http://www.itwriting.com/blog/2158-why-f-rather-than-ironpython-in-visual-studio-2010.html
However, there is a Dynamic Language Runtime Support for the .NET 4.0 Framework using IronPython through a stable release of IronPython 2.6.1 on CodePlex:
http://ironpython.codeplex.com/releases/view/36280, but again, there is no direct support for the Visual Studio .NET 2010 IDE.
As for IronPython support in SharpDevelop, the IDE has full support for WinForms and Console based applications, and debugger support for IronPython, including 2.6.1 and the .NET 4.0 Runtime beginning with SharpDevelop 3.2 RTW. Matt Ward, who has headed up the IronPython and SharpDevelop IDE integration efforts has been very active and helpful through the forums and his blog entries. I was working on a small project in IronPython using SharpDevelop, and for the questions and bug that I found during SharpDevelop 3.0 Beta 1, Matt's support and turnaound time for IronPython issues was tremendous.
With this in mind, if you're looking for the productivity gains of using an IDE, with source code debugging support for IronPython applications and all of the benefits of using the .NET 4.0 Framework and DLR Support, you may want to start with SharpDevelop.
I hope this was of help...

If I have Both Visual Studio 2008 and 2010, do have I have to keep both

I recently downloaded VS 2010 trial, the new version is more easy to use.
I have VS 2008 installed, If i decide to use VS 2010 in the future, do I still have to keep VS 2008? Is there any compatibility issue with it?
You would need to keep VS2008 installed if you target Windows CE (via Compact Framework, native smart device projects, etc.)
http://msdn.microsoft.com/en-us/library/sa69he4t.aspx
Also if you want to write native applications that run on versions of Windows before XP SP3 and Server 2003 SP2, this is no longer possible with VC++ 2010. The same applies to managed code written for the .NET Framework 4.0, but you can still use Framework 3.5 with VS2010 for projects with managed code only.
And Intellisense for C++/CLI code is gone (MS promises to remedy that in the future, whether a service pack or the next version I cannot say).
If you open a VS 2008 solution or a project in VS 2010 it will be converted to VS 2010 and you will not be able to open it in VS 2008.
If that is not a problem then you don´t have to keep VS 2008, unless you are using a addin or some other third party application with VS 2008 that is not compatible with VS 2010.
Edit:
Look at Ben Voigt´s answer for information for which version have support for different platforms.
VS2010 allows you to specify the target framework that you'd like to develop on. There should be no reason to keep VS2008 installed unless you've become accustom to some handy plugins :)

Resources