Go Back   RunUO - Ultima Online Emulation > RunUO > FAQ Forum

FAQ Forum A place to find answers to the most frequently asked questions, and a place to post said answers. Do NOT use this forum to ask questions.

Reply
 
Thread Tools Display Modes
Old 04-22-2006, 03:44 PM   #1 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,422
Default Using RunUO and Visual Studio

Greetings! Since VS C# Express is free now, I thought I'd share something that might help everyone out.

Instead of copying stuff back and forth from the RunUO folder, starting the server, compiling, testing, breaking, and repeating, you can use Visual Studio to both compile and test your code.

To do this, you have to make a project, and add references to the Server.exe and the Scripts.CS.dll that RunUO creates when you run the server. Here's how you do it.

(The steps presented here are from VS 2005 Pro, but it should be similar in C# Express)

1. Create a project in VS C#:

Click File>New>Project.
Select "Class Library" as the project type.
Change the Name to whatever your project is, and change the file path to where you want the project to be stored.
Click OK.

2. Add a reference to Server.exe:

Click Project>Add Reference...
Select the Browse tab
Browse to your RunUO folder, and select Server.exe

3. Compile the "pure" RunUO scripts:

Create a *new* distro RunUO
Run Server.exe

4. Add the "pure" scripts:

Click Project>Add Reference...
Select Browse
Browse to RunUO/Scripts/Output
Select Scripts.CS.dll and/or Scripts.VB.dll

Congratulations, you may now use your new project and refer to RunUO items automatically.
(oh...and something I love about VS 2005 is the #region taggy. Say #region and #endregion, and you can shrink the text inbetween)
__________________
Goodbye, folks.

Last edited by TMSTKSBK; 04-28-2006 at 07:00 PM.
TMSTKSBK is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5