|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Master of the Internet
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,422
|
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|