Services

 

Cool links

Improve Knowledge Sharing Effort


Improve Open Source Tools


Improve Open Source Plugins


Divers

Improve C# Plugin for Eclipse

 

Plugin features

  • C# code editing with:
    • Creation of new C# files (with a basic structure)
    • Syntax highlighting 
    • Content assistant for C# keywords
    • Auto-indentation
  • C# code compilation with:
    • Compilation problems listed in the Tasks view
    • Compiler output information displayed in a console
    • Specification of the compiler arguments via a file property page (the arguments are persistent for each file)
  • C# plugin parameters available via the plugin preference page:
    • Path of Microsoft C# compiler
    • Automatic build on resource modification 

Why such a plugin?

.NET platform is Microsoft's new technology for programming local or Web applications, as well as Web services. This platform is very similar to J2EE (it uses a kind of virtual machine that manages code and uses a base class framework), and is free for downloading and developing with. With this plateform comes C#, a new object-oriented language close to Java and C++.

When you want to develop .NET application (or Web service), you have two choices: either you write your code using your favorite text editor, or you use Visual Studio.NET, Microsoft's IDE for developing .NET applications. If you opt for the second solution, you have to buy the product, which can be quite expensive if you just want to test C# and the .NET framework. Thus, the aim of this plugin is to offer an advanced text editor to discover C# and develop and build simple applications.

Download and install

This plugin is free and open-source (CPL v0.5).

It will work under Windows and Linux (cf. comments "WHAT ABOUT LINUX?").



Eclipse 3RC2
For eclipse 3RC2 use the update manager and create a bookmark to http://www.improve-technologies.com/alpha/updates/site.xml.
If you don't know how to use the update manager, read this procedure: [ Using the update manager ]
Version Date Comment
3.0.0 beta 1 18 Jun. 2004

Full compatibility with Eclipse 3 RC2
Tested with Eclipse 3 RC2 under windows 2000 with mono 1.0 Beta 2 and .net framework 1.1

Please read the README file.

Download the plugin directly plugin.jar.



Eclipse R2.0
For builds F3 (build 20020612) or more recent, use the update manager and create a bookmark to http://www.improve-technologies.com/alpha/updates/site.xml.
If you don't know how to use the update manager, read this procedure: [ Using the update manager ]
Version Date Comment
2.0.1 28 Jun. 2002

Full compatibility with Eclipse R2.0.
Possibility to create new C# file (with a basic structure).
Tested with Eclipse R2.0 (build 20020628), running under Sun's VM 1.4, under Windows 2000 and Linux (Debian Woody).

Please read the README file.

2.0.0 25 Jun. 2002

Compatibility with Eclipse 2 framework changes (does not work under Eclipse R1).
Compiler output information displayed in a console.
Developed and tested with Eclipse 2.0 F3 (build 20020612), running under Sun's VM 1.4.

Please read the README file.


Eclipse R1.0
(older versions)
For the installation, please see the readme file of the plugin version that you want to install.
Version Date Archive file Comment
1.0.1
(0.91)
19 Apr. 2002 Improve-Plugin-C-Sharp_v0.91.zip

Licensing information added (Common Public License Version 0.5).
Please read the README file.

1.0.0
(0.90)
11 Apr. 2002 Improve-Plugin-C-Sharp_v0.9.zip

First version of the plugin.
Developed and tested with Eclipse 2.0, build 20020321, running under Sun's VM 1.4.
Please read the README file.


You also need to download the Microsoft .NET Framework Software Development Kit (SDK): it is the equivalent of the J2EE SDK for .NET. It includes the .NET Framework, as well as everything you need to write, build, test, and deploy .NET Framework applications—documentation, samples, and command-line tools and compilers. You can find .NET Framework SDK at:

http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml

WHAT ABOUT LINUX?
The mono csharp compiler (
http://www.go-mono.com/) is now cli compatible with Microsoft's csc compiler. Therefore, you can use Improve C# plugin (version 2.0.1 or later) under Linux using this compiler.
Thanks to William Wise for the information.

Using the C# plugin

The notion of C# project hasn't been implemented yet. So you can create a ".cs" file where you want: typically, you would create a basic project and build your resource hierarchy in that project. To create a new C# file, use the wizard "New --> Other..." and select "C# file" in the C# part.
When you click on a ".cs" file, the C# text editor opens the file and you can start coding. You can specify the compiler arguments in the file property page: it allows you to build executables, libraries or modules, to specify which libraries to reference, which modules to add, ...etc.
By default, the file is compiled each time you save the C# source code. If you disable this functionality, you can still compile using the button in the task bar. The compilation problems are referenced in the Tasks view (and in the console if you asked for it in the plugin preferences).

Screen shots

  • [1] Eclipse and the C# plugin, with the content assistant
  • [2] An error occured because there's a missing referenced assembly
  • [3] The file property page where you can specify the compiler arguments, for instance: the missing assembly
  • [4] The executable file generated after the build can be seen in the Navigator view

Press articles

  • Eclipsing .NET - A Free .NET IDE
    Excerpt: "The Eclipse Workbench, together with Microsoft's .NET SDK and Improve Technologies' C# Plugin, provides a powerful combination of tools that allows you to experiment with C# .NET application development, using a full-powered IDE - without paying a penny. Enjoy!"

To do

There is still a lot to do, and the list could be very long. Mainly, the following functionnalities could be added:

  • An outliner for the C# file
  • A "format" action to format code appropriately
  • When creating a new C# file, creating the basic structure automatically

Contacts

For any information, remark or feedback about the plugin, feel free to contact us at : eclipse-csharp@improve.fr.

 

 

Copyright Improve 2002.