Scripting in C# Overview and Sample Available

rcampbel wrote on 8/18/2004, 6:48 PM
Now that I have finsihed release 1.0 of the Veggie Toolkit, I thought that it might be helpful to share some of what I have learned about writing scripts in C#. So, I have put up a Scripting in C# overview, samples and FAQ page on my web site. The URL is:

http://www.peachrock.com/software/tutorials/overview.html

Please let me know if you think that this information is useful. I have included a Visual Studio .Net sample application called VegasHello which should give you a good start at writing scripts in C#. I am not trying to replace this forum, but if enough of you think that this info is useful, I will try to maintain it and keep adding to it.

If you have any questions that would be good to add to the FAQ, please let me know.

Thanks,

Randall

Comments

JohnnyRoy wrote on 8/19/2004, 7:36 AM
Randall,

Great idea! I’ve been wanting to document something like this myself and just haven’t had the time. Bravo!!!

I’m using SharpDevelop and am getting very frustrated with its lack of a debugger. Perhaps you can answer a question for me. I was using Visual C# .net 2002 and it doesn’t even have the ability to build a DLL! That’s why I switched to SharpDevelop, I got tired of building the DLL manually from the command line.

I see you are using Visual C# .net 2003. Does the 2003 version add the ability to build DLL’s? (i.e., libraries) If so, I’ll buy it. Thanks,

[EDIT] Never mind, I read further down on your page where you create a library project. I'm sold! Thanks

~jr
JohnnyRoy wrote on 8/26/2004, 7:17 AM
Randall,

I got my copy of Microsoft Visual C# .net 2003 yesterday and when I open your test project (VegasHello) and try and display the MainForm, I get the following error:

The item 'MainForm.resx' does not exist in the project directory. It may have been moved, renamed or deleted.

Sure enough, when I check the directory of files in your ZIP, the file MainForm.resx is not there. Does anyone else have this problem?

~jr

rcampbel wrote on 8/26/2004, 8:10 AM
Yep, I did not include the resx file. If you open and save the MainForm via the visual designer, it will create the resx file. I will update the zip file to include it.

Thanks,

Randall
rcampbel wrote on 8/26/2004, 8:19 AM
Ok, I updated the zip file on the web site, so it should work now.

If you use the old version, you need to delete the MainForm.resx file from the project via the Solution Explorer, then open the MainForm.cs file in the Designer and save it.

Sorry about the oversight.

Randall