Code editing and compiling outside VS in my application?

M

michelqa

Hi,

I need to support a programming language in my c# application. After
a lot of search in google I'm still trying to figure out where to
start on this. Any ideas? Interresting links?, what are the
possibilities? I have 100 days to include a common programming
language like (console C# / VB.net) in our application.

Is there a kind of code EditBox component already available for
editing C# / VB.net source code?
or at least VB script in my application

On a machine without VS is it possible to install everything needed to
compile code and get a build log?

is VS API is what i'm looking for?

I just need an overview of the possibilities, something to start
with...

Thanks for any help...
 
L

Lee

Hi,

I need to support a programming language in my c# application.  After
a lot of search in google I'm still trying to figure out where to
start on this.  Any ideas? Interresting links?, what are the
possibilities?  I have 100 days to include a common programming
language like (console C# / VB.net) in our application.

Is there a kind of code EditBox component already available for
editing C# / VB.net source code?
 or at least VB script in my application

On a machine without VS is it possible to install everything needed to
compile code and get a build log?

is VS API is what i'm looking for?

I just need an overview of the possibilities, something to start
with...

Thanks for any help...

If you want to stick with C#, look at: CS-Script - The C# Script
Engine @ http://csscript.net/

or if you want to go to a "standard" scripting language, look at lua @
http://www.codeproject.com/KB/mcpp/luanetwrapper.aspx

L. Lee Saunders
http://oldschooldotnet.blogspot.com
 
A

Arto Viitanen

michelqa said:
On a machine without VS is it possible to install everything needed to
compile code and get a build log?
..net runtime comes with C# (and I guess Visual Basic) compiler, so your
program can generate, compile and run C# programs without VS. I made a
program that reads special form data, generates a C# file that has class
that corresponds to the data, compiles it, loads the object file,
instantiates an object, shows it it ProprertyGrid and saves the the
changes to the original data (which will eventually end in a database).

Check for Microsoft.CSharp.CSharpCodeProvider and reflection.
 
M

michelqa

Thanks a lot!!!!!!! I need to read about CSScript and take a look at
the .net runtime doc. At the first look a CLS compliant language
seems to be a good choice. What's the point of CSScript VS .net
runtime if everything can be done directly with .net runtime?

In my application I want a kind of RichTextBox that show .cs or .vb
file with all the common editing feature of VS (even intellisence).
My application must be able to compile, run and debug theses
scripts.
My application is an a utomated testing tool, I already have a lot of C
++/C# functions already done and ready to integrate to a futur
scriting solution.

I'm looking for a simple a powerfull scripting language, it's mainly
giving the ability to the user to do structural conditions, loops,
functions, etc with our home brewed user action functions

What is the best option for this kind of application?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top