Robert,
I would consider using the classes in System.CodeDom. Compiler to load &
compile your source. Specifically the CodeDomProvider class & ICodeCompiler
interface.
Indirectly you would be using one of:
- Microsoft.Visua lBasic.VBCodePr ovider
- Microsoft.JScri pt.JScriptCodeP rovider
- Microsoft.CShar p.CSharpCodePro vider
- other code providers for other languages.
This will allow your dotnet.exe to include other languages or any language.
Similar to how wsdl.exe & ASP.NET allows any .NET language! (hint I would
use the same parameters as wsdl.exe & the other .NET sdk tools)
Hope this helps
Jay
"Robert Dobson" <tr****@hotmail .com> wrote in message
news:uH******** ******@TK2MSFTN GP11.phx.gbl...
OK, then how about building a "console application" that executes
arbitrary classes? How would I go about coding up a "dotnet.exe " that takes as a
command line argument the name of another class (assuming to be contained
in an included DLL) that will be executed. How do you instantiate and call
methods on a class that's defined at runtime via a string value? Thanks.
dotnet.exe <class to execute> [args passed to class...]
"Armin Zingler" <az*******@free net.de> wrote in message
news:%2******** *******@TK2MSFT NGP12.phx.gbl.. . "Robert Dobson" <tr****@hotmail .com> schrieb In Java you can execute a single class from the command line using
the command:
java.exe <classname> [args...]
As long as the class in question has a method declared as "public
static final main( String[] args )"
How might I execute a Visual Basic .Net class from the command
line *without* building it as a separate "console" project?
You can not "run classes", but you can run an application. The start
procedure is Sub Main. It can either be a WinForms or a Console
application.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html