R
Robert Dobson
I'm currently looking to port a Java project to .Net and
one thing I've not yet figured out is if you can run .Net
classes from the command line without going through all
the trouble of creating separate projects and building
them into executables.
In java you can just type "java.exe mypackage.MyClass" and
it runs as long as there is a "public static void main
(String[])" method in the class.
I realized in .Net the class is inside a DLL so the syntax
might be trickier, like "dotnet.exe my.dll
mypackage.MyClass" or some such.
Thanks.
one thing I've not yet figured out is if you can run .Net
classes from the command line without going through all
the trouble of creating separate projects and building
them into executables.
In java you can just type "java.exe mypackage.MyClass" and
it runs as long as there is a "public static void main
(String[])" method in the class.
I realized in .Net the class is inside a DLL so the syntax
might be trickier, like "dotnet.exe my.dll
mypackage.MyClass" or some such.
Thanks.